-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add tip height metric (#3964)
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
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters