Ceilometer/blueprints/alarm-audit-api-group-by
The user stories
- User wants health chart of nova instances (health is represented by number of alerts)
- Each instance is represented by number of alerts in given time period.
- Instances can be grouped by metadate resouce_id, meter_names and other alarm attributes (all needs to be saved in Alarm event, so the change of Alarm won't affect it).
- Instanced can be queried by regular ceilometer query, also by a state transition (user is interested only in transitions to 'alarm' states)
Result will be something like
[ { 'resource_id': 'x', 'meter_name':' y', 'count' => 'z', 'timestamp'... } , ... ]
- it was grouped by resource_id an meter_name, but I could group by only by resource_id
- User wants to display a health of multiple instances in time line
Same as 1. but it would be grouped by time ( limit )
Result would be something like this
[[ { 'resource_id': 'x', 'meter_name':' y', 'count' => 1, 'timestamp'... }, {'resource_id': 'x', 'meter_name':' y', 'count' => 2, 'timestamp'... }] , [{ 'resource_id': 'x2', 'meter_name':' y', 'count' => 3, 'timestamp'... }, {'resource_id': 'x2', 'meter_name':' y', 'count' => 4, 'timestamp'... }], ...]
- User wants to see health map of projects
Instead of resource ID in the query, there will be a project ID. For making this work also for Alarms defined for resource ID. Alarm for resource would have to always contain also a Project.
- User wants to be able to order the results by the all result attributes (especially count) and limit the results