Skip to content

Commit

Permalink
page cache metrics: remove unused read_accesses_ephemeral & read_hits…
Browse files Browse the repository at this point in the history
…_ephemeral
  • Loading branch information
problame committed Sep 19, 2023
1 parent e6985bd commit a864083
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions pageserver/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,8 @@ pub(crate) static MATERIALIZED_PAGE_CACHE_HIT: Lazy<IntCounter> = Lazy::new(|| {

pub struct PageCacheMetrics {
pub read_accesses_materialized_page: IntCounter,
pub read_accesses_ephemeral: IntCounter,
pub read_accesses_immutable: IntCounter,

pub read_hits_ephemeral: IntCounter,
pub read_hits_immutable: IntCounter,
pub read_hits_materialized_page_exact: IntCounter,
pub read_hits_materialized_page_older_lsn: IntCounter,
Expand Down Expand Up @@ -163,25 +161,13 @@ pub static PAGE_CACHE: Lazy<PageCacheMetrics> = Lazy::new(|| PageCacheMetrics {
.unwrap()
},

read_accesses_ephemeral: {
PAGE_CACHE_READ_ACCESSES
.get_metric_with_label_values(&["ephemeral"])
.unwrap()
},

read_accesses_immutable: {
PAGE_CACHE_READ_ACCESSES
.get_metric_with_label_values(&["immutable"])
.unwrap()
},

read_hits_ephemeral: {
PAGE_CACHE_READ_HITS
.get_metric_with_label_values(&["ephemeral", "-"])
.unwrap()
},

read_hits_immutable: {
read_hits_immutable: {
PAGE_CACHE_READ_HITS
.get_metric_with_label_values(&["immutable", "-"])
.unwrap()
Expand Down

0 comments on commit a864083

Please sign in to comment.