OpenShift 4.7 console no longer displays request or limit lines on CPU and Memory usage charts

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.7

Issue

  • OpenShift 4.7 does not have the orange and blue dashed request and limit lines on CPU and Memory usage charts
  • After upgrading to OpenShift 4.7, we noticed the console no longer displays request or limit lines on CPU and Memory usage charts

Resolution

This issue was resolved in OpenShift 4.8 GA via This content is not included.Pod request and limit calculations in console are incorrect.

Root Cause

Previous metrics for calculating pod request and limits were inaccurate. Completed pods were not excluded, init containers were not included, and overhead wasn't correctly calculated.

New metrics, kube_pod_resource_request and kube_pod_resource_limit, were introduced that correctly calculate these metrics from the scheduler.

Backporting these enhancements would introduce other behavioural changes in both monitoring and the console and as such, will not be backported to OpenShift 4.7.

To reduce any confusion related to requests and limits, the potentially incorrect values will are longer be displayed in the console on OpenShift 4.7.

Components
Category
Tags

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.