Skip to main content

Metrics

The router exposes Prometheus metrics at :7999/metrics. These are scraped by the Prometheus container and visualized in Grafana.

Exposed Metrics

MetricTypeDescription
lb_requests_totalCounterTotal requests routed, labeled by backend
lb_request_duration_secondsHistogramRequest latency in seconds, labeled by backend

The backend label on each metric identifies which upstream server handled the request.

Prometheus and Grafana Ports

ModePrometheusGrafana
Dev (local)79988000
Production (server)77797780

Prometheus scrapes :7999/metrics on a fixed interval. Grafana is pre-configured to use Prometheus as its data source.