From a08c7d09f9f4aed860d971e2d42af943614efdd1 Mon Sep 17 00:00:00 2001 From: Ondrej Vlach Date: Mon, 11 Dec 2023 22:23:37 +0100 Subject: [PATCH] fix: typo in cache stat --- src/tools/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/cache.rs b/src/tools/cache.rs index e81952c..e9d1dd9 100644 --- a/src/tools/cache.rs +++ b/src/tools/cache.rs @@ -12,7 +12,7 @@ static CACHE_EVICTION_COUNT: Lazy = Lazy::new(|| .expect("Could not create NAME_COUNTER") ); static CACHE_HITS: Lazy = Lazy::new(|| - IntCounterVec::new(opts!(format!("{}_{}", std::env::var("ROCKET_PROMETHEUS_NAMESPACE").unwrap_or("app".to_string()), "cache_hists"), "Count of cache eviction"), &[]).expect("Could not create NAME_COUNTER") + IntCounterVec::new(opts!(format!("{}_{}", std::env::var("ROCKET_PROMETHEUS_NAMESPACE").unwrap_or("app".to_string()), "cache_hits"), "Count of cache eviction"), &[]).expect("Could not create NAME_COUNTER") ); static CACHE_MISSES: Lazy = Lazy::new(|| IntCounterVec::new(opts!(format!("{}_{}", std::env::var("ROCKET_PROMETHEUS_NAMESPACE").unwrap_or("app".to_string()), "cache_misses"), "Count of cache eviction"), &[]).expect("Could not create NAME_COUNTER")