The Metering service aggregates statistical values as floating point values. However, the Dashboard service's admin/Resource Usage panel discards the floating point of these values, effectively rendering them as integers before inserting them into line charts.
As a result, the admin/Resource Usage panel charted unnaturally smooth trend lines. This was especially apparent for meters where values varied over a narrow range.
With this fix, the Dashboard service will always render floating-point data points correctly. This preserves the precision required for presenting trending information in the admin/Resource Usage panel.
Description of problem:
Ceilometer returns aggregated statistical values as float, whereas the 'resource usage' panel narrows to int before inserting these data into the line chart.
For meters defined over a narrow range (such as cpu_util ranging from 0.0% to 100.0%) this has the effect of unnaturally smoothening the graph by discarding precision.
Version-Release number of selected component (if applicable):
python-django-horizon-2013.2-3.el6ost
How reproducible:
100%
Steps to Reproduce:
1. Log into horizon as an admin user
2. Ensure at least one instance has been spun up
3. Navigate to the admin/Resource Usage panel
4. Select via dropdowns:
Metric: cpu_util
Group by: Project
Value: max
Period: Last day
5. Hover over datapoints on the linechart, note that all values are integers
6. Confirm that the actual values have floating point precision:
$ TENANT_ID=<some-tenant-who-owns-an-instance>
$ ceilometer statistics -m cpu_util -q "project_id=$TENANT_ID"
Actual results:
All datapoints are renedered as ints.
Expected results:
All datapoints are renedered as floats.
Additional info:
N/A
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.
http://rhn.redhat.com/errata/RHEA-2013-1859.html
Description of problem: Ceilometer returns aggregated statistical values as float, whereas the 'resource usage' panel narrows to int before inserting these data into the line chart. For meters defined over a narrow range (such as cpu_util ranging from 0.0% to 100.0%) this has the effect of unnaturally smoothening the graph by discarding precision. Version-Release number of selected component (if applicable): python-django-horizon-2013.2-3.el6ost How reproducible: 100% Steps to Reproduce: 1. Log into horizon as an admin user 2. Ensure at least one instance has been spun up 3. Navigate to the admin/Resource Usage panel 4. Select via dropdowns: Metric: cpu_util Group by: Project Value: max Period: Last day 5. Hover over datapoints on the linechart, note that all values are integers 6. Confirm that the actual values have floating point precision: $ TENANT_ID=<some-tenant-who-owns-an-instance> $ ceilometer statistics -m cpu_util -q "project_id=$TENANT_ID" Actual results: All datapoints are renedered as ints. Expected results: All datapoints are renedered as floats. Additional info: N/A