reth_exex/wal/metrics.rs
1use metrics::Gauge;
2use reth_metrics::Metrics;
3
4/// Metrics for the [WAL](`super::Wal`)
5#[derive(Metrics)]
6#[metrics(scope = "exex.wal")]
7pub(super) struct Metrics {
8 /// Size of all notifications in WAL in bytes
9 pub size_bytes: Gauge,
10 /// Number of notifications in WAL
11 pub notifications_count: Gauge,
12 /// Number of committed blocks in WAL
13 pub committed_blocks_count: Gauge,
14 /// Lowest committed block height in WAL
15 pub lowest_committed_block_height: Gauge,
16 /// Highest committed block height in WAL
17 pub highest_committed_block_height: Gauge,
18}