From fea8c98b5972bc6769e4355df06e72097bf0b7f4 Mon Sep 17 00:00:00 2001 From: BodoBolero Date: Wed, 16 Apr 2025 12:07:45 +0200 Subject: [PATCH] remove usages of metrics --- pageserver/src/metrics.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pageserver/src/metrics.rs b/pageserver/src/metrics.rs index ac4b943f27..372c598ff4 100644 --- a/pageserver/src/metrics.rs +++ b/pageserver/src/metrics.rs @@ -334,10 +334,9 @@ pub(crate) static PAGE_CACHE: Lazy = Lazy::new(|| PageCacheMet }, read_hits_immutable: { - // PAGE_CACHE_READ_HITS - // .get_metric_with_label_values(&[task_kind, "immutable", content_kind, "-"]) - // .unwrap() - todo!() // FIXME: Cannot provide IntCounter here without uncommenting above + PAGE_CACHE_READ_HITS + .get_metric_with_label_values(&[task_kind, "immutable", content_kind, "-"]) + .unwrap() }, } })) @@ -454,7 +453,7 @@ pub(crate) enum PageCacheErrorKind { EvictIterLimit, } -pub(crate) fn page_cache_errors_inc(error_kind: PageCacheErrorKind) { +pub(crate) fn page_cache_errors_inc(_error_kind: PageCacheErrorKind) { // PAGE_CACHE_ERRORS // .get_metric_with_label_values(&[error_kind.into()]) // .unwrap()