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")