From 4851d8be039073cfd5fdc30bbd1a6673d4ba92c6 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 29 May 2019 18:09:51 +1000 Subject: [PATCH] Fix some metrics labels --- beacon_node/beacon_chain/src/metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/beacon_chain/src/metrics.rs b/beacon_node/beacon_chain/src/metrics.rs index 0fe738a8c..a3c8553a1 100644 --- a/beacon_node/beacon_chain/src/metrics.rs +++ b/beacon_node/beacon_chain/src/metrics.rs @@ -24,11 +24,11 @@ impl Metrics { pub fn new() -> Result { Ok(Self { block_processing_requests: { - let opts = Opts::new("blocks_processed", "total_blocks_processed"); + let opts = Opts::new("block_processing_requests", "total_blocks_processed"); IntCounter::with_opts(opts)? }, block_processing_successes: { - let opts = Opts::new("valid_blocks_processed", "total_valid_blocks_processed"); + let opts = Opts::new("block_processing_successes", "total_valid_blocks_processed"); IntCounter::with_opts(opts)? }, block_processing_times: { @@ -101,7 +101,7 @@ impl Metrics { IntCounter::with_opts(opts)? }, fork_choice_reorg_count: { - let opts = Opts::new("fork_choice_reorg_depth", "depth_of_reorg"); + let opts = Opts::new("fork_choice_reorg_count", "number_of_reorgs"); IntCounter::with_opts(opts)? }, fork_choice_times: {