Monitor Persistent Volume Claim (PVC) utilization in OpenShift
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_bytesandkubelet_volume_stats_available_bytesfor both RHOCP 3 and RHOCP 4.3+.- For OCS and all the available metrics refer to documentation session OCS 3.11 - Enable Volume metrics
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.
- If using CSI driver, make sure that it is being used the official Red Hat as documented in - Using Container Storage Interface (CSI) .
SBR
Product(s)
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.