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

feat(core): add tip height metric #3964

Merged
merged 4 commits into from
Mar 28, 2022

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 28, 2022

Description

  • adds base_node::blockchain::tip_height metric to track current tip height

Motivation and Context

The main reason for this is currently the tip height is extracted from the logs using Loki which does not support the delta function. delta is needed to determine if the chain tip has moved or not within a timespan.

Following query allows an alert to be created that checks that nothing has changed within 20 minutes (delta of 0 over 20 min timespan)
delta(tari_base_node::blockchain::tip_height[20m])

How Has This Been Tested?

Manually: Metrics appearts in local prometheus instance

Copy link
Contributor

@delta1 delta1 left a comment

Choose a reason for hiding this comment

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

Nice

@sdbondi
Copy link
Member Author

sdbondi commented Mar 28, 2022

This PR gives @delta1 delta()

@aviator-app aviator-app bot merged commit c3f6b11 into tari-project:development Mar 28, 2022
@sdbondi sdbondi deleted the core-tip-metric branch March 28, 2022 13:28
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.

3 participants