Ceilometer API in horizon

Registered by Gabriel Hurley on 2012-10-23

API in horizon for ceilometer - Minimal implementation for D3, will continue in followup blueprint in I

- Initializing the client
- Class wrappers of important Ceilometer entities
- Function wrappers for ceilometer queries
- High level wrappers for important table statistics and time series data, for Resources and Resource Aggregates (containing multiple resources)

Blueprint information

Status:
Complete
Approver:
Gabriel Hurley
Priority:
High
Drafter:
Gabriel Hurley
Direction:
Approved
Assignee:
Ladislav Smola
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
Gabriel Hurley on 2013-01-16
Completed by
Ladislav Smola on 2013-08-29

Related branches

Sprints

Whiteboard

IMPORTANT !!!!!:

the H3 stuff is complete, rest moved to followup Enhancements blueprint

The nits of this will be fixed here, during H3 fix period, please comment as you like
https://bugs.launchpad.net/horizon/+bug/1218407

----------------------------------------------------------------------
[gabrielhurley] Notes from the design summit session:

Basic charts and graphs: https://blueprints.launchpad.net/horizon/+spec/d3
Integrate ceilometer in the existing panels instead of separate section of the UI
Reporting for more than one project? -> Data should be filtered only by "openstack" source in the admin view
Metering for the user vs metering for the admin
How do we visualize the data?
Maybe only show data that appears to indicate an issue?
"Show me what's broken"
outliers
heat map of instances
rank order list based on consumption
sparklines (v2 api?)
RPC - Join consumer pool

What API changes are needed in ceilometer?
aggregate stats by resource to select max, min, etc.
ordering, limiting
Support for grouping/aggregating of data in ceilometer, not in horizon
Source code: https://github.com/yuanotes/horizon/tree/ceilometer

Gerrit topic: https://review.openstack.org/#q,topic:bp/ceilometer,n,z

Addressed by: https://review.openstack.org/35588
    Add ceilometerclient and bootstrap-datepicker as dependency.

Addressed by: https://review.openstack.org/35589
    Add ceilometer api and the tests for it.

[lsmola 27.08.2013]

The big thing here will be to optimize with Group By queries. Group By should be probably dependency. https://blueprints.launchpad.net/ceilometer/+spec/api-group-by] (it's not complete)

Group by will allow to obtain meter statistics for multiple resources(resource aggregates) in one query. It will allow do display more rows in table and also more lines in line chart.

Also as I spoke with ceilometer guys, there could be something like bulk request in distant future, that would allow to obtain more meters in one request. But there is no blueprint for this yet, we should probably start one.

(?)

Work Items

Work items:
The ceilometer api is added to horizon. : DONE

Dependency tree

* Blueprints in grey have been implemented.