fix: typo in cache stat

This commit is contained in:
2023-12-11 22:23:37 +01:00
parent ebe46345fe
commit a08c7d09f9

View File

@@ -12,7 +12,7 @@ static CACHE_EVICTION_COUNT: Lazy<IntCounterVec> = Lazy::new(||
.expect("Could not create NAME_COUNTER")
);
static CACHE_HITS: Lazy<IntCounterVec> = 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<IntCounterVec> = 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")