-
Notifications
You must be signed in to change notification settings - Fork 945
[Merged by Bors] - Sync metrics #1975
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
[Merged by Bors] - Sync metrics #1975
Conversation
AgeManning
left a comment
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.
This looks good to me.
Would be nice to have an accompanying PR in lighthouse-metrics with it.
As this is still in draft, I'm going to be selfish and try and merge tokio-0.3 in first, as there will be conflicts :p
0967bca to
0da0af1
Compare
|
accompanying PR in lighthouse-metrics: sigp/lighthouse-metrics#11 |
|
bors r+ |
## Issue Addressed - Add metrics to keep track of peer counts by sync type - Add metric to keep track of the number of syncing chains in range ## Proposed Changes Plugin to the network metrics update interval and update too the counts for peers wrt to their sync status with us ## Additional Info For the peer counts - By the way it is implemented the numbers won't always match to the total peer count in the `libp2p` metric. - Updating the gauge with every change is messy because it requires to be updated on connection (in the `eth2_libp2p` crate, while metrics are defined in the `network` crate) on Goodbye sent (for an `IrrelevantPeer`) either in the `beacon_processor` or the `peer_manager`, and on disconnection. Since this is not a critical metric I think counting once every second is enough. If you think more accuracy is needed we can do it too, but it would be harder to maintain) ATM those look like this 
|
Pull request successfully merged into unstable. Build succeeded: |
Issue Addressed
Proposed Changes
Plugin to the network metrics update interval and update too the counts for peers wrt to their sync status with us
Additional Info
For the peer counts
libp2pmetric.eth2_libp2pcrate, while metrics are defined in thenetworkcrate) on Goodbye sent (for anIrrelevantPeer) either in thebeacon_processoror thepeer_manager, and on disconnection. Since this is not a critical metric I think counting once every second is enough. If you think more accuracy is needed we can do it too, but it would be harder to maintain)ATM those look like this
