Skip to content
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

Add metrics related to the epoch, sync state and node version #6004

Merged
merged 30 commits into from Jan 13, 2022

Conversation

nikurt
Copy link
Contributor

@nikurt nikurt commented Jan 6, 2022

Adds the following metrics to the node:

  • Epoch height
  • "Header head" metric to complement the existing "block head" metric in case of sync issues
  • Protocol version supported by the node
  • DB version expected by the node
  • Sync status of the node
  • And the expected block height of the next protocol upgrade

* Protocol version supported by the node
* DB version expected by the node
* Header head to complement the existing "block head" metric
* Sync status of the node
* And the expected height of the protocol upgrade
# Conflicts:
#	nearcore/src/runtime/mod.rs
chain/chain/src/chain.rs Outdated Show resolved Hide resolved
chain/client-primitives/src/types.rs Outdated Show resolved Hide resolved
pub static PROTOCOL_UPGRADE_BLOCK_HEIGHT: Lazy<IntGauge> = Lazy::new(|| {
try_create_int_gauge(
"near_protocol_upgrade_block_height",
"Estimated block height of the protocol upgrade",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, what's the purpose for this metric?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It lets validators set alerts about an imminent protocol upgrade. Multiple validators expressed interest in this alert.

chain/client-primitives/src/types.rs Outdated Show resolved Hide resolved
@near-bulldozer near-bulldozer bot merged commit f10532c into master Jan 13, 2022
@near-bulldozer near-bulldozer bot deleted the nikurt-metrics branch January 13, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants