<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>You can utilize two metrics to monitor your Persistent Volume Claims (PVCs), despite the name &quot;volume&quot; being used. The metrics are as follows:</p>
<ul>
<li><code>kubelet_volume_stats_capacity_bytes</code>: This metric indicates the total capacity of the volume.</li>
<li><code>kubelet_volume_stats_used_bytes</code>: This metric represents the current usage of the volume.</li>
</ul>
<p>To specify a particular PVC, you can employ the filter <code>persistentvolumeclaim=&quot;PVC_NAME&quot;</code> and replace &quot;PVC_NAME&quot; with the actual name of your PVC.</p>
<p>For instance, you can calculate the usage percentage using the following query:</p>
<pre><code>100.0 * kubelet_volume_stats_used_bytes{job=&quot;kubelet&quot;, namespace=&quot;btel&quot;, persistentvolumeclaim=&quot;storage-volume-cpro-server-1&quot;} / kubelet_volume_stats_capacity_bytes
</code></pre>
<p>This query provides the usage percentage for the PVC named &quot;storage-volume-cpro-server-1&quot; in the &quot;btel&quot; namespace, based on the kubelet_volume_stats_used_bytes and kubelet_volume_stats_capacity_bytes metrics.</p>
