Created attachment 1742518 [details] Period selection has a "$__auto_interval_period" which brings page error Description of problem: API Performance Dashboard "Period" drop-down has a choice "$__auto_interval_period" which can bring "1:154: parse error: missing unit character in duration" 4.7.0-0.nightly-2020-12-21-131655 How reproducible: Always Steps to Reproduce: 1. Login to management console via kubeadmin, navigate Monitoring --> Dashboards. In the Dashboard drop-down list, select “API Performance”. 2. Click "Period" drop-down Actual results: 2. There is a selection choice: "$__auto_interval_period". Click it, the page shows, see screenshot later: ! An error occurred 1:154: parse error: missing unit character in duration Expected results: 2. Any selection choice of the drop-down list should be clicked validly without error. Additional info:
Hi xxia, This is most likely an issue with the console dashboard rendering logic. It may not support "auto interval period". Can you please get it verified by the console qe team? If "auto interval period" is not supported then I am happy to remove the auto option from the "period" variable.
OK, moving to Management Console component. Sorry for the trouble.
Andy could you please take a look on this issue and do a further triage if needed. Thanks
> OK, moving to Management Console component. Sorry for the trouble. xxia, thanks for the thorough testing!
I've opened https://github.com/openshift/console/pull/7823 which adds basic support for `$__auto_interval_*` variables by treating them as being the same as `$__interval`.
Tested 4.7.0-0.nightly-2021-01-14-211319, the error is gone. Select Time Range of 6 hours, select Period of $__auto_interval_period, per the PR, it should be 12m. Look at the graph "api request duration by verb - 99th quantile", it should correspond to below query: histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{apiserver="kube-apiserver",subresource!="log",verb!~"WATCH|WATCHLIST|PROXY"}[12m])) by(verb,le)) In Prometheus UI, do this query with 720 resolutions, then compare Prometheus UI's graph, same as web console's. This proves the PR.
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.7.0 security, bug fix, and enhancement 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-2020:5633