-
Notifications
You must be signed in to change notification settings - Fork 922
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 prysm version to prometheus #8527
Add prysm version to prometheus #8527
Conversation
shared/version/metrics.go
Outdated
) | ||
|
||
var prysmInfo = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Name: "prysm_info", |
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.
Name: "prysm_info", | |
Name: "prysm_version", |
or prysm_version_and_committ
is fine too
Codecov Report
@@ Coverage Diff @@
## develop #8527 +/- ##
==========================================
Coverage ? 58.12%
==========================================
Files ? 460
Lines ? 32950
Branches ? 0
==========================================
Hits ? 19151
Misses ? 10894
Partials ? 2905 |
}) | ||
|
||
func init() { | ||
prysmInfo.Set(float64(1)) |
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.
How does this work? It always sets the version to 1?
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.
🤦 nevermind i get it
What type of PR is this?
Feature
What does this PR do? Why is it needed?
Adds prysm version as prometheus metric
Which issues(s) does this PR fix?
Fixes #8516
Other notes for review
Also added commit hash