Monitor Persistent Volume Claim (PVC) utilization in OpenShift

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3
    • 4

Issue

  • Is there a way to monitor Persistent Volume Claim (PVC) utilization
  • PV and PVC usage metrics

Resolution

Prometheus was introduced as TP (Technical Preview) in RHOCP 3.7 and Storage metrics in RHOCP 3.9. Since 3.11 Prometheus is GA .

  • The main metrics available to be used is kubelet_volume_stats_used_bytes and kubelet_volume_stats_available_bytes for both RHOCP 3 and RHOCP 4.3+.

RHOCP 4 Notes

Starting with OpenShift Container Platform 4.3, the kubelet does extract this information from the respective CSI driver and exposes it accordingly.

SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.