Bug 1255304 - [Enhancement] Graphs should take the measurement and data type into consideration
[Enhancement] Graphs should take the measurement and data type into considera...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Core UI (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
Depends On:
Blocks: 1255296
  Show dependency treegraph
Reported: 2015-08-20 05:06 EDT by bkramer
Modified: 2015-08-20 05:06 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
A screen shot that shows negative values in the graph (100.57 KB, image/png)
2015-08-20 05:06 EDT, bkramer
no flags Details

  None (edit)
Description bkramer 2015-08-20 05:06:02 EDT
Created attachment 1065178 [details]
A screen shot that shows negative values in the graph

Description of problem:

When navigating to datasources "Connection Count" metric for EAP 5 in some cases graph will show negative values (from -1.0 up to 1.0) - see attached negativeValueGraph.png. The same will happen even when "Connection Count" is equal to 0. Only when value of this metric is > 0 proper graph values will be shown. 

This happens because RHQ does not take the measurement and data type into consideration. For example, for a trends ups measurement, the bottom value will never be lower then the minimum value. Therefore, it would make sense that we would start at 0 in this case. The opposite being true for trends down measurements. In those cases, the largest value on the y-axis should be the maximum value for the displayed time period.

Version-Release number of selected component (if applicable):
RHQ 4.12

How reproducible:

Steps to Reproduce:
1. Start EAP 5, 
2. import EAP instance into RHQ inventory,
3. navigate to Monitoring page for EAP instance and open "Connection Count" metric graph;
4. Change the period for the graph to 6 months

Actual results:
Graph is shown with negative values on the y-axis although "Connection Count" cannot have negative value. 

Expected results:
Graph does not show negative values but starts from 0 (in this case).

Additional info:

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