Skip to content

Commit

Permalink
prometheus: fixed bug where last_message_good gauge was displaying th…
Browse files Browse the repository at this point in the history
…e last_message_faulty value.
  • Loading branch information
SurfingNerd committed Nov 6, 2023
1 parent 8562350 commit ffab76b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ethcore/src/engines/hbbft/hbbft_message_memorium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ffab76b

Please sign in to comment.