<p>I am using Prometheus 2.33 version.
The following query does not work.</p>
<blockquote>
<p>kubelet_volume_stats_available_bytes</p>
</blockquote>
<blockquote>
<p>kubelet_volume_stats_capacity_bytes</p>
</blockquote>
<p>The following query is used to monitor the DISK usage of the POD.</p>
<blockquote>
<p>container_fs_usage_bytes</p>
</blockquote>
<blockquote>
<p>container_fs_limit_bytes</p>
</blockquote>
<p>Is there a way to get the usage of PVC, Limit value?</p>

김태우
<p>For PVC, Kubernetes exposes these metrics to Prometheus, you can use them to monitor a persistent volume's usage:</p>
<pre class="lang-yaml prettyprint-override"><code>kube_persistentvolume_capacity_bytes 
kube_persistentvolumeclaim_resource_requests_storage_bytes
</code></pre>
<p><strong>EDIT</strong>:
These metrics are from <a href="https://github.com/kubernetes/kube-state-metrics" rel="nofollow noreferrer">kube-state-metrics</a> - a service that produces Prometheus format metrics based on the current state of the Kubernetes native resources. It is basically listening to Kubernetes API and gathering information about its resources and objects, in particular for PV - <a href="https://github.com/kubernetes/kube-state-metrics/blob/master/docs/persistentvolume-metrics.md" rel="nofollow noreferrer">PV metrics</a> and PVC - <a href="https://github.com/kubernetes/kube-state-metrics/blob/master/docs/persistentvolumeclaim-metrics.md" rel="nofollow noreferrer">PVC metrics</a>. More information about the service is <a href="https://kubernetes.io/blog/2021/04/13/kube-state-metrics-v-2-0/" rel="nofollow noreferrer">here</a>.</p>
