Collecting metrics of PVC based on EFS storage class

Hello

Currently we have deployed Prometheus helm chart in kubernetes cluster and we are monitoring PVC data using kubelet_volume_stats_capacity_bytes, kubelet_volume_stats_available_bytes, kubelet_volume_stats_used_bytes, so on.

We migrated the PVC to use AWS EFS csi driver, instead of EBS. But the Prometheus is not collecting data for the PVC which is based on EFS storage class.

Thanks in advance for your help

Ticket closed: Prometheus is not providing used and available space for AWS EFS based PVC · Issue #10630 · prometheus/prometheus · GitHub
AWS EFS csi driver: Amazon EFS CSI driver - Amazon EKS

I know this thread is over a year old but for everyone arriving here from Google, here’s the solution:

The EFS node driver needs the parameter --vol-metrics-opt-in=true to expose the volume metrics. Can be done in static manifests and the Helm chart. I haven’t found a way doing it using the AWS management console