Update current leader information in metrics and dashboard

This commit is contained in:
Pankaj Garg 2019-03-12 00:13:12 +00:00 committed by Grimes
parent 8bba11367e
commit b418525464
2 changed files with 5 additions and 1 deletions

View File

@ -217,6 +217,10 @@ impl ReplayStage {
next_leader next_leader
); );
poh_recorder.lock().unwrap().set_bank(&tpu_bank); poh_recorder.lock().unwrap().set_bank(&tpu_bank);
inc_new_counter_info!(
"replay_stage-new_leader",
tpu_bank.slot() as usize
);
} }
} }
}) })

View File

@ -1412,7 +1412,7 @@
} }
], ],
"thresholds": "", "thresholds": "",
"title": "Last Leader Rotation Tick", "title": "Last Leader Rotation Slot",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "70%", "valueFontSize": "70%",
"valueMaps": [ "valueMaps": [