Skip to main content
GET
Health Endpoint

Overview

The /health endpoint provides real-time information about the load balancer’s operational status and backend server health.

Endpoint

Response

status
string
Overall health status
  • ok: Load balancer is operating normally
  • degraded: Some backends are down but service continues
  • down: No healthy backends available
healthy_backends
string
Ratio of healthy backends (e.g., “3/3” or “2/3”)
uptime_seconds
number
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

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

The uptime_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
Use this field to track restart frequency and overall stability.

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