Bug 1014689

Summary: Resource metric graph portlet shows graph incorrectly when there is not enough space
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: UIAssignee: Mike Thompson <mithomps>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: mithomps, theute
Target Milestone: ER05   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:43:24 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:
Attachments:
Description Flags
example none

Description Libor Zoubek 2013-10-02 14:32:41 UTC
Created attachment 806521 [details]
example

Description of problem:


Version-Release number of selected component (if applicable):
JON 3.2.ER2

How reproducible: always


Steps to Reproduce:
1. have a metric with big maximum 3 or more hours ago
2. place graph of this metric to dashboard and make place for that portlet thin

Actual results: 

Metric graph displays only 1 or 2 hour history, but values are rendered as it was full 8hours interval. 3 hours old big maximum defines maximum for Y axis, but this is wrong. Maximum must be derived from value currently displayed. This may lead to situation when you cannot even hover actual values, because maximum was very high in the past, see screenshot (bottom left).


Expected results: both graps on screenshot (bottom left & bottom right) should look +- similar


Additional info:

Comment 1 Mike Thompson 2013-10-09 02:17:13 UTC
This is as designed. They both use the same interval widths (for instance, 8 m), except that the thin (cut down) graph can only display a smaller number of bars. This way, they look consistent when comparing graphs between large and small as they use the same units. If you need more history move the graph over to the larger column.