Bug 1962062 - Monitoring dashboards should support default values of "All"
Summary: Monitoring dashboards should support default values of "All"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.8.0
Assignee: Andrew Pickering
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-19 09:12 UTC by Andrew Pickering
Modified: 2021-07-27 23:09 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:09:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Kubernetes / Networking / Namespace (Pods) dashboard (94.01 KB, image/png)
2021-05-24 02:27 UTC, Junqi Zhao
no flags Details
Kubernetes / Networking / Pod dashboard (95.27 KB, image/png)
2021-05-24 02:28 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8975 0 None open Bug 1962062: Monitoring dashboards: Allow variable dropdowns to default to "All" 2021-05-19 09:14:30 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:09:28 UTC

Comment 4 Junqi Zhao 2021-05-24 02:26:35 UTC
tested with 4.8.0-0.nightly-2021-05-21-233425, there are 3 dashboards on "Monitoring -> Dashboards" have dropdown filters that should default to "All", but
Kubernetes / Networking / Pod -> Namespace field should default to "All", but it sets the default to the first value in the list, usually openshift-apiserver
Kubernetes / Networking / Namespace (Pods) -> Namespace field should default to "All", but it sets the default to the first value in the list, usually openshift-apiserver
Prometheus / Overview -> Job,Instance fields default to "All", no issue for this dashboard

Comment 5 Junqi Zhao 2021-05-24 02:27:46 UTC
Created attachment 1786233 [details]
Kubernetes / Networking / Namespace (Pods) dashboard

default value is openshift-apiserver

Comment 6 Junqi Zhao 2021-05-24 02:28:34 UTC
Created attachment 1786234 [details]
Kubernetes / Networking / Pod dashboard

default value is openshift-apiserver

Comment 7 Andrew Pickering 2021-05-24 08:35:04 UTC
This looks like the expected behavior.

We only use "All" as the default value when the dashboard definition explicitly states that we should. Grafana seems to have a different behavior of also defaulting to "All" when no default is specified.

Specifically, we are looking for the following in the JSON dashboard definition:

"current": {
  "selected": true,
  "value"" "$__all",
}

Comment 9 Junqi Zhao 2021-05-25 06:48:13 UTC
based on Comment 7, only the "Prometheus / Overview" dashboard, which use the grafana-dashboard-prometheus configmap has the JSON dashboard definition:

"current": {
  "selected": true,
  "value"" "$__all",
}

and Job,Instance fields default to "All", set to VERIFIED

Comment 12 errata-xmlrpc 2021-07-27 23:09:09 UTC
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


Note You need to log in before you can comment on or make changes to this bug.