Description of problem: Currently in the section "Cluster Utilisation" memory consumption is calculated using following query: sum(node_memory_Active_bytes) However, when using "by node" breakdown, the query used is: `topk(25, sort_desc(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes))`. Difference between queries causes differences in perceived memory usage. Version-Release number of selected component (if applicable): 4.4 How reproducible: always Steps to Reproduce: 1. Start a cluster 2. Open Console Actual results: Cluster memory usage is calculated by taking only Active memory Expected results: Cluster memory consumption should be calculated by using `Total - Available` difference or with following query: sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) Additional info: This is probably also present in previous OpenShift versions, but I didn't verify it. Possibly this line needs a change: https://github.com/openshift/console/blob/master/frontend/public/components/dashboard/dashboards-page/cluster-dashboard/queries.ts#L70
*** Bug 1812098 has been marked as a duplicate of this bug. ***
Targeting 4.5 as we are past code freeze.
Now Memory Utilization query is using query_range?start=1584679548.928&end=1584683148.928&step=60&query=sum(node_memory_MemTotal_bytes+-+node_memory_MemAvailable_bytes) Memory Total query is using query?query=sum(node_memory_MemTotal_bytes) Verified on 4.5.0-0.nightly-2020-03-19-112259
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.5 image release advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409