-
Notifications
You must be signed in to change notification settings - Fork 2.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
metrics: add separate statesync and blocksync metrics #9682
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.
There were some comments that this was messy.
Were these comments in synchronous discussions, or are they in an issue somewhere?
Also, this changes the metric labels from block_syncing
-> blocksync_syncing
and state_syncing
-> statesync_syncing
, right?
Do we anticipate that there'll be more metrics added in the blocksync_
and statesync_
groups in the v0.38 release? If not, then I'd advocate for keeping the metric labels the same. Every such change introduces friction into an upgrade, and I'd say we should keep upgrade friction at a minimum.
Actually, I take this back. If we break this once then we can roll out additional metrics in an additive, non-breaking way in patch releases. Please add a changelog and/or upgrading guide entry for this though? |
Some synchronous but mostly in code: Line 258 in ffae184
Line 578 in ffae184
I can imagine that there would eventually be more metrics. Tracking the amount of snapshots available in the network or the latest height blocksynced etc.
Sure |
Statesync and blocksync metrics were previously housed within the consensus metrics. There were some comments that this was messy. Metrics should reside in the component that controls them. This PR separates them out into their respective packages.