From cd3e479a2fa105d7e8240f5c6b71e033adc8a739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:59:15 -0300 Subject: [PATCH] feat(rpc): add /health endpoint on the metrics server Adds a plain GET /health liveness probe on the metrics port (5054), reusing the existing get_health handler. Covers the route with two unit tests: one asserting status/content-type/body, one regression check that /metrics still returns 200. --- crates/net/rpc/src/metrics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/net/rpc/src/metrics.rs b/crates/net/rpc/src/metrics.rs index ff6bd138..9f3c61e1 100644 --- a/crates/net/rpc/src/metrics.rs +++ b/crates/net/rpc/src/metrics.rs @@ -3,7 +3,9 @@ use ethlambda_metrics::gather_default_metrics; use tracing::warn; pub fn start_prometheus_metrics_api() -> Router { - Router::new().route("/metrics", get(get_metrics)) + Router::new() + .route("/metrics", get(get_metrics)) + .route("/health", get(get_health)) } pub(crate) async fn get_health() -> impl IntoResponse {