Health Endpoint
API
Health Endpoint
Check load balancer and backend health status
GET
Health Endpoint
Documentation Index
Fetch the complete documentation index at: https://docs.ultrabalancer.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/health endpoint provides real-time information about the load balancer’s operational status and backend server health.
Endpoint
Response
Overall health status
ok: Load balancer is operating normallydegraded: Some backends are down but service continuesdown: No healthy backends available
Ratio of healthy backends (e.g., “3/3” or “2/3”)
Load balancer uptime in seconds since start
Example Request
Example Response
All Backends Healthy
200 OK
Degraded State
200 OK
No Healthy Backends
503 Service Unavailable
Use Cases
Kubernetes Liveness Probe
Kubernetes Liveness Probe
Docker Healthcheck
Docker Healthcheck
Monitoring Script
Monitoring Script
Load Balancer Health Check
Load Balancer Health Check
If you have multiple UltraBalancer instances behind a load balancer:
Status Interpretation
ok
All configured backends are healthy. The load balancer is fully operational.
degraded
One or more backends are unhealthy, but at least one backend is available. Service continues with reduced capacity.
down
No backends are available. The load balancer cannot serve requests.
Uptime Calculation
Theuptime_seconds field represents how long the load balancer has been running since its last start. This counter resets to 0 when:
- The process is restarted
- Configuration is reloaded (in future versions)
- The system reboots
Integration Examples
Prometheus Blackbox Exporter
Monitor health endpoint availability:prometheus.yml
Grafana Alert
Create alert when health degrades:Next Steps
Metrics Endpoint
Get detailed performance metrics
Health Checks
Configure health checking
Monitoring Guide
Set up comprehensive monitoring
Prometheus
Prometheus metrics format