-
Notifications
You must be signed in to change notification settings - Fork 29
feat: add version metric #732
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
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.
Pull Request Overview
This PR adds version information tracking to the finality provider metrics system. The changes enable Prometheus to expose version details (version number, git commit, and build timestamp) for operational monitoring and debugging purposes.
- Adds a new
versionInfoPrometheus GaugeVec metric to track version information - Integrates with the existing
versionpackage to extract commit and timestamp details - Sets the version metric once at startup within the singleton initialization
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Lazar955
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.
Lgtm, thanks!
| * [#732](https://github.com/babylonlabs-io/finality-provider/pull/732) | ||
| * feat: add version metric |
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.
| * [#732](https://github.com/babylonlabs-io/finality-provider/pull/732) | |
| * feat: add version metric | |
| * [#732](https://github.com/babylonlabs-io/finality-provider/pull/732) feat: add version metric |
```
# HELP fp_version_info Version information of the finality provider binary
# TYPE fp_version_info gauge
fp_version_info{commit="f75233c",timestamp="2025-11-04T16:43:39Z",version="4.0.0-rc.0-107-gf75233c"} 1
```
(cherry picked from commit 6c6f990)
```
# HELP fp_version_info Version information of the finality provider binary
# TYPE fp_version_info gauge
fp_version_info{commit="f75233c",timestamp="2025-11-04T16:43:39Z",version="4.0.0-rc.0-107-gf75233c"} 1
```<hr>This is an automatic backport of pull request #732 done by
[Mergify](https://mergify.com).
Co-authored-by: Julian <155650345+toroviej0x0@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.