Fix some metrics labels

This commit is contained in:
Paul Hauner 2019-05-29 18:09:51 +10:00
parent 42b6e0c8a9
commit 4851d8be03
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF

View File

@ -24,11 +24,11 @@ impl Metrics {
pub fn new() -> Result<Self, Error> {
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: {