From f3d97361564331d591af6038cccad1099025cfe3 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Sun, 20 Jul 2025 01:11:24 +0800 Subject: [PATCH] Fix suffix mismatch for the metrics. (#8168) Signed-off-by: Charles Chen --- sgl-router/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgl-router/src/metrics.rs b/sgl-router/src/metrics.rs index 0ff2055c5..76e952a03 100644 --- a/sgl-router/src/metrics.rs +++ b/sgl-router/src/metrics.rs @@ -132,7 +132,7 @@ pub fn start_prometheus(config: PrometheusConfig) { // Initialize metric descriptions init_metrics(); - let duration_matcher = Matcher::Suffix(String::from("duration")); + let duration_matcher = Matcher::Suffix(String::from("duration_seconds")); let duration_bucket = [ 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0, 15.0, 30.0, 45.0, 60.0, 90.0, 120.0, 180.0, 240.0,