You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the dashboard imported from kubernetes-mixin, all metrics from pvcs comes from kubelet indeed 🤔
But looking at kube-state-metrics, there is also another metric that can be helpful: kube_persistentvolumeclaim_resource_requests_storage_bytes. Does that one works for you?
Using:
k8s 1.15 in azure/aks
kube-prometheus-stack-9.4.10
I am trying to get Prometheus to list available capacity for a list of PVCs I have created for my k8s cluster in aks/azure.
I can curl a running prometheus and list my PVCs in a cluster with:
Which has the below PersistentVolumeClaim:
In the graphql web editor (http://127.0.0.1:9090/graph) I can query its capacity with (using the above volumeName for my-pvc):
which gives:
549755813888
But more interestingly how do I list the available capacity for that volume?
I found a similar post on the cadvisor project:
google/cadvisor#1702 (comment)
mentioning this metric: kubelet_volume_stats_available_bytes but that is not available.
Any suggestions?
The text was updated successfully, but these errors were encountered: