Description of problem: Memory usage for DB Kubernetes / Compute Resources / Namespace (Pods) and Kubernetes / Compute Resources / Namespace (Workloads) include unreasonable query Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-04-09-222447 How reproducible: always Steps to Reproduce: 1. Go to Monitoring -> Dashboards 2. Select DB 'Kubernetes / Compute Resources / Pod' 3. Find 'Memory Usage' and there are 'quota - limits' and 'quota - request' 4. click inspect, there are the following query, suppose they should not be included ------------------------- > scalar(kube_resourcequota{cluster="", namespace="openshift-monitoring", > type="hard",resource="requests.memory"}) ---- > scalar(kube_resourcequota{cluster="", namespace="openshift-monitoring", > type="hard",resource="limits.memory"}) Actual results: Expected results: Additional info: Same issue exists on 4.7
Created attachment 1771550 [details] console DB
Created attachment 1771551 [details] DB query
Is this something you could take a look at Pawel? I believe the UI is behaving as expected, but the question is whether the dashboard panel's query is correct.
I don't see any formal reason for this query to be wrong. The metric kube_resourcequota exists, its just not necessarily set for a given namespaces and in that case nothing is returned for these queries. However when set this is a useful metric to display. @hongyan li: Any further thoughts on what can be improved here? Otherwise I'll close this soon.
Thanks @Jan, I checked again, you are right and you can continue to close it.
Thanks everyone, closing.