mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #49371 from juju-solutions/bug/pv-metric
Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514) Fix: PV metric is not namespaced **What this PR does / why we need it**: The PV metric of juju deployments is not namespaced. This PR fixes this bug. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/348 **Special notes for your reviewer**: **Release note**: ```NONE ```
This commit is contained in:
commit
b9e549e7cf
@ -23,7 +23,7 @@ metrics:
|
||||
persistentvolume:
|
||||
type: gauge
|
||||
description: number of pv
|
||||
command: /snap/bin/kubectl get pv --all-namespaces | tail -n+2 | wc -l
|
||||
command: /snap/bin/kubectl get pv | tail -n+2 | wc -l
|
||||
persistentvolumeclaims:
|
||||
type: gauge
|
||||
description: number of claims
|
||||
|
Loading…
Reference in New Issue
Block a user