Skip to main content

build_metrics_router

Function build_metrics_router 

Source
pub fn build_metrics_router(state: AppState) -> Router
Expand description

Build a minimal router exposing GET /metrics in Prometheus text format.

Kept separate from the main OCSP router so operators bind it on a private listener (server.metrics_listen), never the public OCSP port.