mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-25 19:43:22 +00:00
Fix: PV metric is not namespaced
This commit is contained in:
parent
acc19cafa4
commit
0faf5bf4b0
@ -23,7 +23,7 @@ metrics:
|
|||||||
persistentvolume:
|
persistentvolume:
|
||||||
type: gauge
|
type: gauge
|
||||||
description: number of pv
|
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:
|
persistentvolumeclaims:
|
||||||
type: gauge
|
type: gauge
|
||||||
description: number of claims
|
description: number of claims
|
||||||
|
Loading…
Reference in New Issue
Block a user