-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Adding metrics - num_get_vote_accounts_voting, num_live_validator_histories #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at the lint output as well, the udeps seems to be a different issue
…into adding_metrics
keepers/validator-keeper/src/lib.rs
Outdated
let live_validator_histories_count = | ||
get_multiple_accounts_batched(&all_history_vote_accounts, client) | ||
.await | ||
.expect("Cannot fetch validator history vote accounts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
here instead of expect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Added two new metrics to the
emit_validator_history_metrics
function:num_live_validator_histories
: The number of validator history accounts that have "live" vote accounts with the owner of said vote account being the vote programnum_get_vote_accounts_voting
: The number of vote accounts actually voting. More specifically, accounts that have voted in the current epoch retrieved fromget_vote_accounts_with_retry
.