-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 exception for metric component prefixes for object metrics #5361
Add exception for metric component prefixes for object metrics #5361
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dashpole 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 |
/hold |
I felt we discussed more than this, but I'm happy to do it piece by piece and decide on each individually (the other two were discussed were library vs component prefix). |
/hold |
Co-authored-by: Tariq Ibrahim <tariq181290@gmail.com>
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.
Nice, thanks! lgtm
/lgtm I believe we have agreement on this. Feel free to remove hold if you agree. |
/hold cancel |
Which issue(s) this PR fixes:
This is a follow-up to kubernetes/enhancements#1916, which added kube_* prefixed metrics to the scheduler. The kube_* prefix was first used in Kube-state-metrics, and the linked KEP expanded the use of the prefix beyond a single component.
My primary motivation is to capture the discussions that have been had over the past few months, and make sure that we keep metrics in-line with our naming guidelines.
Some of the related discussion threads:
kubernetes/kubernetes#94866 (comment)
kubernetes/kubernetes#95839 (comment)
kubernetes/enhancements#1916 (comment)
I realized there can be naming collisions if there are controllers for CRDs with the same name, so I added to the prefix of non-built-in resources. Feel free to suggest alternatives.
@kubernetes/sig-instrumentation-api-reviews @smarterclayton