Bug 894778

Summary: [RFE] Add metering/monitoring support (via Ceilometer) to Horizon
Product: Red Hat OpenStack Reporter: Perry Myers <pmyers>
Component: python-django-horizonAssignee: Ladislav Smola <lsmola>
Status: CLOSED ERRATA QA Contact: Kevin Whitney <kwhitney>
Severity: medium Docs Contact:
Priority: high    
Version: 2.0 (Folsom)CC: ajeain, aortega, bperkins, Jan.van.Eldik, jkt, jpichon, lsmola, markmc, mlopes, mrunge, srevivo
Target Milestone: Upstream M3Keywords: FutureFeature, OtherQA
Target Release: 4.0   
Hardware: All   
OS: Linux   
URL: https://blueprints.launchpad.net/horizon/+spec/ceilometer
Whiteboard:
Fixed In Version: python-django-horizon-2013.2-7.el6ost Doc Type: Enhancement
Doc Text:
Metering resource usage graphs are now available in Dashboard. A new 'Resource Usage' panel is accessible in the Admin dashboard, enabling administrators to query and visualise Metering telemetry data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-19 23:56:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 988515, 996347    
Bug Blocks: 975499    
Attachments:
Description Flags
Stats graph: Black rectangle none

Description Perry Myers 2013-01-13 19:08:21 UTC
Add metering/monitoring support (via Ceilometer) to Horizon

Comment 1 Julie Pichon 2013-01-23 16:15:58 UTC
See also https://blueprints.launchpad.net/ceilometer/+spec/horizon-plugin for an initial upstream effort at integrating Ceilometer with Horizon.

Comment 3 Julie Pichon 2013-08-14 07:53:52 UTC
Hello. What's the information request for?

Comment 5 Ladislav Smola 2013-09-04 11:11:54 UTC
The basic ceilometer integration (for Havana) consists from 3 blueprints:
https://blueprints.launchpad.net/horizon/+spec/ceilometer
https://blueprints.launchpad.net/horizon/+spec/horizon-chart.js
https://blueprints.launchpad.net/horizon/+spec/admin-resource-usage-page

Prerequisites to test:
Install OpenStack with Ceilometer enabled.

What changed:
On Admin panel you should now see the Resource Usage page with:
1. Several tables with avg statistics of important meters from the last 30 days
2. General multi-line chart showing statistics in time. 
- You can pick meter, whether to group by project or see the resources and time span 
- Know that if there is not enough data, chart resize itself by available data. So having only data from one day, switching to week timespan does nothing.
- The list of all meters is here http://docs.openstack.org/developer/ceilometer/measurements.html (you need to have associated services to see the statistics data)
- Line chart should resize itself to fill the rest of the screen (there is minimal size) and react to window resize event.

Comment 7 Ladislav Smola 2013-09-06 14:55:45 UTC
FYI not sure if the 5 minutes test run will be enough. I think the period of sampling is pretty big (I would say minutes). 
Also for charts, the smallest interval is one day for now, and the chart shows only 400 samples for one line, divided into one day.

Comment 10 Ami Jeain 2013-10-27 13:25:19 UTC
as Perry agreed, it will be tested in upstream tempest.

Comment 11 Julie Pichon 2013-11-28 16:00:16 UTC
I'm trying to sanity test this feature, however at the moment the 'Resource Usage' Stats tab only shows a black rectangle (cf. screenshot). Thanks to Ladislav, we determined that it's probable a css file is missing from the compressed CSS - openstack_dashboard/static/dashboard/less/horizon_charts.less as the chart classes don't seem to be included. Matthias, can you help us shed some light on this?

Comment 12 Julie Pichon 2013-11-28 16:23:12 UTC
An additional data point: when I removed openstack-dashboard-theme in order to sanity check bug 911888, the Stats graphs started displaying just fine.

Comment 13 Julie Pichon 2013-11-29 15:18:39 UTC
Created attachment 830697 [details]
Stats graph: Black rectangle

Comment 18 errata-xmlrpc 2013-12-19 23:56:40 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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html