Skip to content

Commit

Permalink
showing tracked staking epoch in prometheus interface for early epoch…
Browse files Browse the repository at this point in the history
… manager.
  • Loading branch information
SurfingNerd committed Nov 28, 2023
1 parent 98a2a49 commit ca895d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ impl HbbftEarlyEpochEndManager {
impl PrometheusMetrics for HbbftEarlyEpochEndManager {
fn prometheus_metrics(&self, registry: &mut stats::PrometheusRegistry) {
registry.register_gauge(
"early_epoch_end_flagged_validators",
"early_epoch_end_staking_epoch",
"staking epoch information for early epoch end manager",
self.current_tracked_epoch_number as i64,
);

registry.register_gauge(
"early_epoch_end_num_flagged_validators",
"number of validators flagged for missing communication",
self.flagged_validators.len() as i64,
);
Expand Down
1 change: 0 additions & 1 deletion crates/ethcore/src/engines/hbbft/hbbft_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,6 @@ impl Engine<EthereumMachine> for HoneyBadgerBFT {
}

impl PrometheusMetrics for HoneyBadgerBFT {

fn prometheus_metrics(&self, registry: &mut stats::PrometheusRegistry) {
self.hbbft_message_dispatcher.prometheus_metrics(registry);
if let Some(early_epoch_manager_option) = self
Expand Down

0 comments on commit ca895d3

Please sign in to comment.