Skip to main content

metrics_handler

Function metrics_handler 

Source
pub async fn metrics_handler(metrics: Arc<PrometheusMetrics>) -> MetricsResponse
Expand description

Handles GET /metrics requests

Returns metrics in Prometheus text format with appropriate content-type header. This is a testable version of the handler that returns a struct.