Spring Boot ऐप्स के लिए स्टेटस पेज और अपटाइम मॉनिटरिंग
Spring Boot services मॉनिटर करें। Spring Boot Actuator health endpoints के साथ out of the box काम करता है। Public स्टेटस पेज या हमारी API के माध्यम से headless।
Spring Boot के लिए स्टेटस पेज लॉन्च करने के तीन तरीके
नियंत्रण का स्तर चुनें — zero-code, low-code, या पूर्ण headless।
Hosted
अपना Spring Boot endpoint जोड़ें, CNAME को status.yourdomain.com पर point करें, हो गया। 5 मिनट में।
Headless
Public API का उपयोग करके अपनी Spring Boot ऐप के अंदर अपनी UI बनाएं। डिज़ाइन और ब्रांडिंग पर पूरा नियंत्रण।
API देखेंएम्बेडेड badges
अपने README या landing page में SVG uptime और status badges डालें। हर 5 मिनट में auto-update।
इस health endpoint को अपनी Spring Boot ऐप में जोड़ें
Copy, paste, PulseAPI को URL पर point करें। स्वस्थ पर 200, degraded पर 503 return करता है।
# application.yml
management:
endpoints:
web:
exposure:
include: health, info
endpoint:
health:
show-details: always
probes:
enabled: true
health:
db:
enabled: true
redis:
enabled: true
diskspace:
enabled: trueSpring Boot Actuator stable JSON schema के साथ /actuator/health expose करता है। `$.status == "UP"` assert करें। Specific components के लिए JSON-path rules add करें।
Spring Boot ऐप्स में क्या टूटता है — और कैसे पकड़ें
Downstream टूटा होने पर भी Actuator "UP"
Default health check pass हो सकता है जबकि critical bean intermittently fail करे। Custom HealthIndicators add करें और specific components assert करें।
JVM memory pressure
लंबे GC pauses latency spikes के रूप में दिखते हैं। Response-time alerts OOMs होने से पहले पकड़ लेते हैं।
Kafka consumer lag
Silent consumer failures queues बढ़ाते हैं। एक lag endpoint expose करें और threshold assert करें।
हमारा स्टेटस पेज पसंद नहीं? Spring Boot में अपना बनाएं।
हमारी API वही data लौटाती है जो हमारी hosted UI उपयोग करती है। पूर्ण OpenAPI spec यहां api.pulseapi.tech/docs.
@RestController
public class StatusController {
private final RestTemplate rest = new RestTemplate();
@GetMapping("/status")
public ResponseEntity<String> status() {
String body = rest.getForObject(
"https://api.pulseapi.tech/status/acme",
String.class
);
return ResponseEntity.ok(body);
}
}Spring Boot मॉनिटरिंग — FAQ
क्या यह Spring Boot 2, 3, या Micronaut के साथ काम करता है?
सबके साथ। Actuator /actuator/health shape Spring versions में stable है और Micronaut का similar है।
क्या मैं /actuator/health secure कर सकता हूं?
हां। API key या IP allow-list use करें। PulseAPI हर endpoint पर custom headers support करता है।
Kubernetes probes कैसे handle करूं?
Actuator के liveness और readiness sub-paths use करें। PulseAPI को `/actuator/health/liveness` external uptime के लिए और `/readiness` dependency health के लिए point करें।
क्या Spring app के अंदर स्टेटस पेज render कर सकता हूं?
हां। @RestController में हमारी public API proxy करें या Thymeleaf से render करें।
अपनी Spring Boot ऐप की मॉनिटरिंग 5 मिनट में शुरू करें
मुफ्त tier, कोई credit card नहीं। अपना endpoint जोड़ें और टूटने पर alerts पाएं।