Commit b9e549e7 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 4560beb2 0faf5bf4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment