Skip to content
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

Merged
merged 3 commits into from
Dec 18, 2020
Merged

Add exception for metric component prefixes for object metrics #5361

merged 3 commits into from
Dec 18, 2020

Conversation

dashpole
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 10, 2020
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the area/developer-guide Issues or PRs related to the developer guide label Dec 10, 2020
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 10, 2020
@dashpole
Copy link
Contributor Author

/hold
for comments. Some people are on vacation, so i'll wait to remove the hold until 2021.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 10, 2020
@brancz
Copy link
Member

brancz commented Dec 11, 2020

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).

@brancz
Copy link
Member

brancz commented Dec 11, 2020

/hold
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 11, 2020
Co-authored-by: Tariq Ibrahim <tariq181290@gmail.com>
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 15, 2020
Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! lgtm

@brancz
Copy link
Member

brancz commented Dec 18, 2020

/lgtm

I believe we have agreement on this. Feel free to remove hold if you agree.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 18, 2020
@dashpole
Copy link
Contributor Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 18, 2020
@k8s-ci-robot k8s-ci-robot merged commit 2f0f67b into kubernetes:master Dec 18, 2020
@dashpole dashpole deleted the update_naming_guidelines branch November 8, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/developer-guide Issues or PRs related to the developer guide cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants