From 8aea0f4b38b63e96509f75bca8040bc6c4f7a6b6 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Fri, 29 Sep 2023 08:57:45 -0700 Subject: [PATCH] fix: remove name label from QUERY_DURATION metrics --- service/src/metrics/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/src/metrics/mod.rs b/service/src/metrics/mod.rs index f9878939..74737197 100644 --- a/service/src/metrics/mod.rs +++ b/service/src/metrics/mod.rs @@ -80,7 +80,6 @@ pub static QUERIES_WITHOUT_RECEIPT: Lazy = Lazy::new(|| { m }); -#[allow(dead_code)] pub static QUERY_DURATION: Lazy = Lazy::new(|| { let m = HistogramVec::new( HistogramOpts::new( @@ -90,7 +89,7 @@ pub static QUERY_DURATION: Lazy = Lazy::new(|| { .namespace("indexer") .subsystem("service") .buckets(linear_buckets(0.0, 1.0, 20).unwrap()), - &["deployment", "name"], + &["deployment"], ) .expect("Failed to create query_duration histograms"); prometheus::register(Box::new(m.clone())).expect("Failed to register query_duration counter");