From b418525464033635f58aef5453a07f6c9bbbb8cc Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 12 Mar 2019 00:13:12 +0000 Subject: [PATCH] Update current leader information in metrics and dashboard --- core/src/replay_stage.rs | 4 ++++ metrics/testnet-monitor.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 5cce8dca5..9fa1f60a3 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -217,6 +217,10 @@ impl ReplayStage { next_leader ); poh_recorder.lock().unwrap().set_bank(&tpu_bank); + inc_new_counter_info!( + "replay_stage-new_leader", + tpu_bank.slot() as usize + ); } } }) diff --git a/metrics/testnet-monitor.json b/metrics/testnet-monitor.json index a04003608..678570d46 100644 --- a/metrics/testnet-monitor.json +++ b/metrics/testnet-monitor.json @@ -1412,7 +1412,7 @@ } ], "thresholds": "", - "title": "Last Leader Rotation Tick", + "title": "Last Leader Rotation Slot", "type": "singlestat", "valueFontSize": "70%", "valueMaps": [