-
Notifications
You must be signed in to change notification settings - Fork 108
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove drand_version metric #945
Conversation
2de8faa
to
e947938
Compare
After creating the dashboard I realized that we don't even need to convert the version to a number if we add it as a label in |
Related: #939 |
metrics/metrics.go
Outdated
ConstLabels: map[string]string{"build": common.COMMIT}, | ||
}, func() float64 { return float64(getVersionNum(common.GetAppVersion())) }) | ||
// DKGStateChangeTimestamp tracks DKG status changes | ||
DKGStateChangeTimestamp = prometheus.NewGaugeVec(prometheus.GaugeOpts{ |
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.
is it expected that nothing is going to report this 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.
ARGH. I'd stashed that before the first commit then unstashed and forgot to restash before the second one. It's part of the next thing to implement. I've removed it and force-pushed.
66b49b5
to
8f5c689
Compare
DrandBuildTime = prometheus.NewUntypedFunc(prometheus.UntypedOpts{ | ||
Name: "drand_build_time", | ||
Help: "Timestamp when the binary was built in seconds since the Epoch", |
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.
This might need to be rephrased / renamed if it's also responsible for the version, no?
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.
The metric name refers to the meaning of the value, which is still the build time. We're using labels to pass additional info, but their meaning is in the label name, not in the metric name.
No description provided.