I want to set an alert for pvc consumption in Kubernetes. Each PVC in my cluster is mounted to a specific PV where the last one has a specific folder in a huge NAS NFS storage.
In other words, Microservice "x" mounts a "x-pvc" which is bounded to "x-pv" which is configured nfs to connect into the shared NFS stoarge to aspecific path "//persistent-volume-folder-x"
I have found that kube-state-metrics exposes these metrics:
- kubelet_volume_stats_capacity_bytes
- kubelet_volume_stats_used_bytes
For capacity and consumption, the first one works fine and it displays the requested capacities storage but the second one not working where it returns for each pvc the size of the whole nfs.
my question is the nfs pv not supported by kube-state-metrics ? Any suggestions please?
0 views0
