Bug 1821607

Summary: Metrics chart is too slow to load browsing from Alert/AlertRule page
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.5CC: anpicker, aos-bugs, bpeterse, jokerman, juzhao
Target Milestone: ---Keywords: Regression
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:25:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
takes about 15 seconds to load chart
none
reproduces on 4.5.0-0.nightly-2020-05-18-031304 with Firefox 76.0.1
none
Verification screenshot none

Description XiaochuanWang 2020-04-07 08:01:34 UTC
Description of problem:
Cluster admin check Alerting page such as Watchdog (or Alerting Rule page), chart is quick enough to show. Click 'View in Metrics' will browse to Metics page and the chart is too slow to show.

Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-04-06-184201

How reproducible:
Always

Steps to Reproduce:
1. Cluster admin user goes to Alerting page, such as Watchdog (or from Alerting detail page goes to Alerting Rule page)
2. Check the chart, now it's quick enough to show.
3. Click 'View in Metrics' and check the chart on Metrics page


Actual results:
3. Chart is too slow to show which needs at least 10 seconds.

Expected results:
3. Should show the chart as same speed as in Alerting/Alerting Rule page.

Additional info:
Firefox 74.0

Comment 1 Junqi Zhao 2020-04-13 04:06:57 UTC
Same issue if query metrics directly from Query Browser

Comment 2 Junqi Zhao 2020-05-07 06:12:35 UTC
(In reply to Junqi Zhao from comment #1)
> Same issue if query metrics directly from Query Browser

same issue if query metrics from developer/cluster admin Query Browser

Comment 3 David Taylor 2020-05-11 13:00:13 UTC
We will look into this in the next sprint.

Comment 4 bpeterse 2020-05-15 20:38:31 UTC
I was not able to reproduce this.  I checked Watchdog, as well as several others.  Clicking "show in metrics" loaded the chart reasonably quick each time.

Comment 5 Junqi Zhao 2020-05-18 03:51:32 UTC
(In reply to bpeterse from comment #4)
> I was not able to reproduce this.  I checked Watchdog, as well as several
> others.  Clicking "show in metrics" loaded the chart reasonably quick each
> time.

what is your browser version, we used Firefox/Chrome, it takes 15 seconds to load the chart after clicking "View in Metrics", see the attached gif recorded on Google Chrome	79.0.3945.130 (Official Build) (64-bit)

Comment 6 Junqi Zhao 2020-05-18 03:52:24 UTC
Created attachment 1689507 [details]
takes about 15 seconds to load chart

Comment 7 XiaochuanWang 2020-05-18 06:49:31 UTC
Created attachment 1689535 [details]
reproduces on  4.5.0-0.nightly-2020-05-18-031304 with Firefox 76.0.1

Comment 8 Andrew Pickering 2020-05-18 11:11:00 UTC
This bug was introduced by the change to `useRefWidth` in https://github.com/openshift/console/pull/4841

Comment 12 XiaochuanWang 2020-05-19 02:10:45 UTC
Created attachment 1689730 [details]
Verification screenshot

Comment 13 XiaochuanWang 2020-05-19 02:11:44 UTC
Chart is quickly to show now. Attached the screen recording for refer.
Verified on 4.5.0-0.nightly-2020-05-19-011623

Comment 14 errata-xmlrpc 2020-07-13 17:25:52 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, 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/RHBA-2020:2409