Overview
The/metrics endpoint returns real-time load balancer metrics in JSON format for easy integration with monitoring systems and custom dashboards.
Endpoint: GET /metrics
Response Format: application/json
Authentication: None (configure firewall rules to restrict access)
Request
Response Format
Fields Reference
Global Metrics
integer
Total number of requests processed since startup
integer
Number of successful requests (2xx, 3xx status codes)
integer
Number of failed requests (4xx, 5xx, timeouts)
float
Average response time in milliseconds
float
Minimum response time observed
float
Maximum response time observed
float
50th percentile (median) response time
float
95th percentile response time
float
99th percentile response time
integer
Load balancer uptime in seconds
float
Current requests per second rate
string
Active load balancing algorithm
Backend Metrics
string
Backend server address (host:port)
boolean
Health status (true = healthy, false = unhealthy)
integer
Current number of active connections to this backend
integer
Total requests sent to this backend
integer
Current failure count (resets on successful health check)
float
Average response time for this backend
string
Circuit breaker state:
closed, open, or half_openUsage Examples
Python
JavaScript/Node.js
Go
Bash/cURL
Integration Examples
Custom Dashboard
Alerting Script
Related Topics
Prometheus Endpoint
Prometheus metrics format
Monitoring Setup
Complete monitoring guide
Metrics Concept
Understanding metrics
Health Checks
Health check system