From a6b1fee5399b33cd229fd1e23979e39b7fdfd27f Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 3 Oct 2024 16:10:07 +0300 Subject: [PATCH] chore(exex): adjust WAL gauge metric names (#11454) --- crates/exex/exex/src/wal/metrics.rs | 8 ++++---- crates/exex/exex/src/wal/mod.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/exex/exex/src/wal/metrics.rs b/crates/exex/exex/src/wal/metrics.rs index 7726fc978d..0183762940 100644 --- a/crates/exex/exex/src/wal/metrics.rs +++ b/crates/exex/exex/src/wal/metrics.rs @@ -7,10 +7,10 @@ use reth_metrics::Metrics; pub(super) struct Metrics { /// Size of all notifications in WAL in bytes pub size_bytes: Gauge, - /// Total number of notifications in WAL - pub notifications_total: Gauge, - /// Total number of committed blocks in WAL - pub committed_blocks_total: Gauge, + /// Number of notifications in WAL + pub notifications_count: Gauge, + /// Number of committed blocks in WAL + pub committed_blocks_count: Gauge, /// Lowest committed block height in WAL pub lowest_committed_block_height: Gauge, /// Highest committed block height in WAL diff --git a/crates/exex/exex/src/wal/mod.rs b/crates/exex/exex/src/wal/mod.rs index 2341b56d10..00b0ea919e 100644 --- a/crates/exex/exex/src/wal/mod.rs +++ b/crates/exex/exex/src/wal/mod.rs @@ -167,8 +167,8 @@ impl WalInner { fn update_metrics(&self, block_cache: &BlockCache, size_delta: i64) { self.metrics.size_bytes.increment(size_delta as f64); - self.metrics.notifications_total.set(block_cache.notification_max_blocks.len() as f64); - self.metrics.committed_blocks_total.set(block_cache.committed_blocks.len() as f64); + self.metrics.notifications_count.set(block_cache.notification_max_blocks.len() as f64); + self.metrics.committed_blocks_count.set(block_cache.committed_blocks.len() as f64); if let Some(lowest_committed_block_height) = block_cache.lowest_committed_block_height { self.metrics.lowest_committed_block_height.set(lowest_committed_block_height as f64);