Skip to main content

start_metrics_server

Function start_metrics_server 

Source
pub fn start_metrics_server(addr: SocketAddr) -> Result<()>
Expand description

Start the Prometheus metrics HTTP server on the given address.

Installs a global metrics recorder, registers metric descriptions (# HELP), configures latency histogram buckets, and spawns an HTTP listener that serves /metrics in Prometheus text format.