-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
147 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use metrics::Gauge; | ||
use reth_metrics::Metrics; | ||
|
||
/// Metrics for the [WAL](`super::Wal`) | ||
#[derive(Metrics)] | ||
#[metrics(scope = "exex.wal")] | ||
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, | ||
/// Lowest committed block height in WAL | ||
pub lowest_committed_block_height: Gauge, | ||
/// Highest committed block height in WAL | ||
pub highest_committed_block_height: Gauge, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.