Created attachment 1764283 [details] screen shot with error Created attachment 1764283 [details] screen shot with error Description of problem: Failed to get type for Dashboard Kubernetes / Compute Resources / Namespace (Workloads) Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-03-18-000857 How reproducible: always Steps to Reproduce: 1.Go to Monitoring-Dashboards 2.Select DB Dashboard Kubernetes / Compute Resources / Namespace (Workloads) 3.Error displayed in Type dropdown box Actual results: Error displayed in Type dropdown box Expected results: Type should be displayed Additional info: The following curl command failed curl 'https://console-openshift-console.apps.hongyli-0318.qe.devcluster.openshift.com/api/prometheus/api/v1/query_range?start=1616049115.278&end=1616050915.278&step=60&query=count%28namespace_workload_pod%3Akube_pod_owner%3Arelabel%7B%25%28clusterLabel%29s%3D%22%22%2C+namespace%3D%7E%22openshift-apiserver%22%2C+workload%3D%7E%22.%2B%22%7D%29+by+%28workload_type%29&timeout=30s' \ Response of the curl {"status":"error","errorType":"bad_data","error":"1:53: parse error: unexpected character inside braces: '%'"} Decode the URL, there is unexpected '%' https://console-openshift-console.apps.hongyli-0318.qe.devcluster.openshift.com/api/prometheus/api/v1/query_range?start=1616049115.278&end=1616050915.278&step=60&query=count(namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="",+namespace=~"openshift-apiserver",+workload=~".+"})+by+(workload_type)&timeout=30s
This appears to be an error in the query specified in the dashboard definition and it also causes an error when trying to view the dashboard in Grafana. Looks like this was already fixed in kubernetes-mixin by https://github.com/kubernetes-monitoring/kubernetes-mixin/pull/558
Reducing this to medium severity since it is specific to one dashboard query and not a more general problem.
Should be fixed in OpenShift now.
Test with payload 4.8.0-0.nightly-2021-04-22-182303 1.Go to Monitoring-Dashboards 2.Select DB Dashboard Kubernetes / Compute Resources / Namespace (Workloads) 3.Correct values display in Type dropdown box
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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), 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/RHSA-2021:2438