From ffab76b3ded0c783e722b512a0e77ae22c1a6e62 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 6 Nov 2023 19:48:23 +0100 Subject: [PATCH] prometheus: fixed bug where last_message_good gauge was displaying the last_message_faulty value. --- crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs b/crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs index 37d384cf9..d0ef9be50 100644 --- a/crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs +++ b/crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs @@ -1061,14 +1061,14 @@ impl PrometheusMetrics for NodeStakingEpochHistory { // num_good_messages: u64, r.register_gauge_with_label( - format!("last_message_faulty").as_str(), + format!("last_message_good").as_str(), format!("block number").as_str(), label.as_str(), - self.last_message_faulty as i64, + self.last_message_good as i64, ); r.register_gauge_with_label( - format!("last_message_good").as_str(), + format!("last_message_faulty").as_str(), format!("block number").as_str(), label.as_str(), self.last_message_faulty as i64,