Support Ceilometer Integration

Registered by Renat Akhmerov on 2014-05-29

Mistral should support Ceilometer integration (run workflows on Ceilometer alarms).

Blueprint information

Status:
Not started
Approver:
Renat Akhmerov
Priority:
Medium
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

Hi, I am just wondering how this will work.

When I create a Ceilometer Alarm it needs a URL to post to when the alarm fires.

I assume that when the user creates the Workbook it will now have to return a URL (ec2signed URL?) that I can put in the Alarm definition that I POST to Ceilometer.

So the trigger section will look something like:

triggers:
  execute_on_webhook:
    type: webhook
    tasks: alarm_action
    parameters:
      arg2: "foo"

To implement this we need to:
1) look through the triggers section when setting up the workbook to see if there is a
    trigger of type "webhook" and generate a magic URL
2) store the URL and return it to the user (so they can tell Ceilometer about it)
3) add an endpoint for webhooks to receive it, get a trust token (the URL needs to be associated with the execution trust_id)
4) trigger the excutor

Would you say this is reasonable?
-Angus

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.