Skip to main content

serve_metrics

Function serve_metrics 

Source
pub async fn serve_metrics(port: u16)
Expand description

Spawn a minimal Tokio HTTP server on port that serves /metrics.

The server runs in a background task and never blocks the Pingora thread.