# Collecting metrics of PVC based on EFS storage class

**URL:** <https://discuss.prometheus.io/t/collecting-metrics-of-pvc-based-on-efs-storage-class/1024>\
**Category:** General Help/Support\
**Created:** [May 31, 2022, 4:24pm UTC](https://discuss.prometheus.io/t/collecting-metrics-of-pvc-based-on-efs-storage-class/1024 "2022-05-31T16:24:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ycedillos](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/ycedillos/32/448_2.png) [@ycedillos](https://discuss.prometheus.io/u/ycedillos)\
**Post date:** [May 31, 2022, 4:24pm UTC](https://discuss.prometheus.io/t/collecting-metrics-of-pvc-based-on-efs-storage-class/1024/1 "2022-05-31T16:24:16Z")

</div>

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](https://github.com/prometheus/prometheus/issues/10630)  
AWS EFS csi driver: [Amazon EFS CSI driver - Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/efs-csi.html)

---

<div class="post-metadata">

**Author:** ![michaelniemand](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/michaelniemand/32/889_2.png) [@michaelniemand](https://discuss.prometheus.io/u/michaelniemand)\
**Post date:** [January 11, 2024, 9:04am UTC](https://discuss.prometheus.io/t/collecting-metrics-of-pvc-based-on-efs-storage-class/1024/2 "2024-01-11T09:04:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![devops\_guy](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@devops\_guy](https://discuss.prometheus.io/u/devops_guy)\
**Post date:** [November 21, 2024, 10:11am UTC](https://discuss.prometheus.io/t/collecting-metrics-of-pvc-based-on-efs-storage-class/1024/3 "2024-11-21T10:11:03Z")

</div>

How to add it in helm chart and where to add it?
