diff --git a/crates/metrics/src/provider.rs b/crates/metrics/src/provider.rs index ea9d9c45..939b2b34 100644 --- a/crates/metrics/src/provider.rs +++ b/crates/metrics/src/provider.rs @@ -40,8 +40,10 @@ impl MetricsProvider { pub async fn run(self) -> eyre::Result<()> { info!("Starting metrics server on port {}", self.config.server_port); - let router = - axum::Router::new().route("/metrics", get(handle_metrics)).with_state(self.registry); + let router = axum::Router::new() + .route("/metrics", get(handle_metrics)) + .route("/status", get(handle_status)) + .with_state(self.registry); let address = SocketAddr::from(([0, 0, 0, 0], self.config.server_port)); let listener = TcpListener::bind(&address).await?; @@ -51,6 +53,12 @@ impl MetricsProvider { } } +async fn handle_status() -> Response { + trace!("Handling status request"); + + StatusCode::OK.into_response() +} + async fn handle_metrics(State(registry): State) -> Response { trace!("Handling metrics request");