kube_lease_renew_time needs namespace label #2071
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
The metric kube_lease_renew_time{lease="foo"} is describing a namespaced object but not exposing the namespace. This can lead to metric collisions if there are two leases in different namespaces.
What you expected to happen:
Expose the namespace label for kube_lease_renew_time in internal/store/lease.go
How to reproduce it (as minimally and precisely as possible):
Create two leases with the same name in different namespaces.
Anything else we need to know?:
Environment:
kubectl version
): 1.23The text was updated successfully, but these errors were encountered: