How to view the historical data of ResourceQuotas in Prometheus

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.12

Issue

  • How to view the metrics and the historical data of ResourceQuota in Prometheus?
  • The status fields in the ResourceQuota object are not showing up in Prometheus.

Resolution

  • Navigate to the OpenShift console under Observe and select Metric choose kube_resourcequota
  • Below is an example.
  1. Login to the Openshift console under Observe and select Metric as shown below.
    alt text

  2. Under insert metric at cursor choose kube_resourcequota as shown below.
    alt text

  3. Once selected the required information will be displayed as below.
    alt text

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.

Comments