-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update validator reporting logs and metrics for Altair #9589
Conversation
…te-fields-for-altair
…te-fields-for-altair
Perhaps add a note in IndividualVotesRespond stating that |
@@ -258,23 +269,29 @@ func (v *validator) LogValidatorGainsAndLosses(ctx context.Context, slot types.S | |||
startBalance := float64(v.startBalances[pubKeyBytes]) / gweiPerEth | |||
percentNet := (newBalance - prevBalance) / prevBalance | |||
percentSinceStart := (newBalance - startBalance) / startBalance | |||
log.WithFields(logrus.Fields{ | |||
|
|||
previousEpochSummaryFields := logrus.Fields{ |
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.
I suggest adding here Altair's Inactivity scores
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.
Thanks! I totally meant to do that!
Another general comment is that perhaps you want to update the description of the |
This is failing e2e consistently. I'll look into that today. |
|
…f bounds checks for validator metrics reporting and a panic catch
Ready for another look. I discovered a bug in the previous release that would lead to a panic if the server returned a response where the slices were not the same length, i.e. when Altair fork occurs and some fields are no longer returned. |
@@ -408,6 +457,15 @@ func (v *validator) UpdateLogAggregateStats(resp *ethpb.ValidatorPerformanceResp | |||
totalPrevBal += v.prevBalance[i] | |||
} | |||
|
|||
if totalStartBal == 0 || |
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.
nice!
What type of PR is this?
Feature
What does this PR do? Why is it needed?
Inclusion slot and delay are key metrics that users read. This PR is an attempt to replace those metrics with something equally as meaningful for Altair.
Which issues(s) does this PR fix?
Fixes #9545
Other notes for review