I am using Kubernetes Persistent Volumes dashboard on Grafana to view the disk usage for my PVCs. This dashboard makes use of kubelet_volume_stats_used_bytes
metric to fetch the data for the PVCs and I am able to visualize it as well.
But, it does not display the PVCs which use EFS as storageclass. I found some stackoverflow answers and comments regarding the same, but none of them included a solution.
How to monitor kubernetes persistence volume claim i.e disk usage
How to monitor disk usage of kubernetes persistent volumes?
So my question is how do get usage metrics for EFS PVCs? Or to make it more generic - how to scrape PVC metrics for all storageclasses?