-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix the naming for Metrics as per convention #7810
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.
/kind bug
/test check-pr-has-kind-label |
@khrm: The specified target(s) for
The following commands are available to trigger optional jobs:
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@vdemeester Please look into this. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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 is backward compatible because we don't remove any metrics (that we rename), right ? Can the commit message (and the PR description) list the changes and why ? It's present in the issue but when we look at the code history we won't look at the github issue. Also the issue only talks about *_total
but it seems there is more thingsy added.
0314a4b
to
8d53a40
Compare
Most of the metrics aren't as per convention. This fixes it in a backward compatible way. We introduce metrics with compliant naming. Gauge metrics: Gauge metrics shouldn't end with `count` as it implies a counter. Counter metrics: Counter metrics shouldn't end with `count` as it implies a counter from histogram. Instead, we should use `total`. https://prometheus.io/docs/practices/naming/ https://www.robustperception.io/on-the-naming-of-things/
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.
@vdemeester Please check now.
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
@vdemeester @afrittoli Can we get this merged before v0.59.0? So please review this.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Most of the metrics aren't as per convention. This fixes it in a backward-compatible way. We introduce metrics with compliant naming.
Gauge metrics: Gauge metrics shouldn't end with
count
as it implies a counter.Counter metrics: Counter metrics shouldn't end with
count
as it implies acounter from the histogram. Instead, we should use
total
.https://prometheus.io/docs/practices/naming/
https://www.robustperception.io/on-the-naming-of-things/
Fixes #7096
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes