-
Bug
-
Resolution: Unresolved
-
Major
-
4.12.z
-
No
-
False
-
-
Fixed issue with with stacked charts in Observe > Dashboards that caused the charts to disappear when one or more invalid queries were used.
-
Bug Fix
-
In Progress
Description of problem:
When a namespace has a Resource Quota applied to it the Workload Graphs in the Observe view does not renders properly.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Create a new project/namespace 2. Apply the following Resource Quota (just a sample) to it ``` kind: ResourceQuota apiVersion: v1 metadata: name: staging-workshop-quota spec: hard: limits.cpu: '3' limits.memory: 3Gi pods: '10' ``` 3. From the Developer Console, access the Observe View 3. From teh Dashboard list, select `Kubernetes / Compute Resources / Namespaces (Workloads)` Option
Actual results:
The Graph is not rendered (see attached screenshot)
Expected results:
The Graph should render even with no data point
Additional info:
When you have a Resource Quota applied to the namespace you can try this query to see the `NaN` value returned. ``` curl -G -s -k -H "Authorization: Bearer $(oc whoami -t)" 'https://thanos-querier-openshift-monitoring.apps.cluster-your cluster domain here/api/v1/query' --data-urlencode 'query=scalar(kube_resourcequota{cluster="", namespace="user9-staging", type="hard",resource="requests.memory"})' ``` sample respose ``` {"status":"success","data":{"resultType":"scalar","result":[1682600794.396,"NaN"]}} ```