[IMPROVEMENT] Add PVC namespace to longhorn_volume metrics #7077
Labels
area/monitoring
System (cluster, node) or volume metrics, logs, stats
backport/1.4.5
backport/1.5.3
component/longhorn-manager
Longhorn manager (control plane)
kind/improvement
Request for improvement of existing function
require/auto-e2e-test
Require adding/updating auto e2e test cases if they can be automated
require/backport
Require backport. Only used when the specific versions to backport have not been definied.
require/doc
Require updating the longhorn.io documentation
Milestone
Is your improvement request related to a feature? Please describe (馃憤 if you like this request)
In [IMPROVEMENT] Add pvc name to longhorn_volume metrics you added the PVC name to the volume metrics, however to entirely define a PVC we also need the namespace (multiple PVC can have the same name if they are in different namespaces).
Describe the solution you'd like
Add a "namespace" label to all longhorn_volume metrics, and fill it with the PVC namespace from
v.Status.KubernetesStatus.Namespace
.Describe alternatives you've considered
n/a
Additional context
n/a
PRs
As the change is very similar to what you did a few months ago, I created the same PRs, let me know if this is a mistake.
The text was updated successfully, but these errors were encountered: