-
Notifications
You must be signed in to change notification settings - Fork 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 namespace label to kube_lease_renew_time
#2073
Add namespace label to kube_lease_renew_time
#2073
Conversation
This patch adds the namespace label to the `kube_lease_renew_time` and updates unit tests to validate the changes. Fixes github.com/kubernetes/kube-state-metrics
This issue is currently awaiting triage. If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the The 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. |
Welcome @a-hilaly! |
@@ -3,4 +3,4 @@ | |||
| Metric name| Metric type | Labels/tags | Status | | |||
| ---------- | ----------- |-------------------------------------------------------------------------------------------------------------------------------------------| ----------- | | |||
| kube_lease_owner | Gauge | `lease`=<lease-name> <br> `owner_kind`=<onwer kind> <br> `owner_name`=<owner name> <br> `namespace` = <namespace> <br> `lease_holder`=<lease holder name>| EXPERIMENTAL | | |||
| kube_lease_renew_time | Gauge | `lease`=<lease-name> | EXPERIMENTAL | | |||
| kube_lease_renew_time | Gauge | `lease`=<lease-name> <br> `namespace` = <namespace> | EXPERIMENTAL | |
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 this file supposed to be generated? make dockcheck
errored so i manually edited it
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.
I don't think we auto-generate it, we only validate the metrics in the table
/lgtm Thanks for your contribution! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, mrueg 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 |
What this PR does / why we need it:
This patch adds the namespace label to the
kube_lease_renew_time
andupdates unit tests to validate the changes.
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
N/A
Which issue(s) this PR fixes
Fixes #2071