Ask Your Question

How to create an Event based alarm with HTTP callback as alarm action?

asked 2017-06-27 08:16:25 -0600

siddsr gravatar image

updated 2017-06-27 18:45:34 -0600

I am able to create event based alarms as per the Openstack documents. I am even able to track the events, but somehow alarms are not getting triggered. Alarm state never changes. Alarm action for is a REST api of POST type. Please share examples if anyone has tried these. Does it even work? my rest APIs look like this :

    "alarm_actions": [
    "description": "An event alarm",
    "enabled": true,
    "insufficient_data_actions": [
    "name": "SubnetstateAlarm",
    "event_rule": {
        "event_type": "subnet.update.end",
        "query" : [
                "field" : "traits.resource_id",
                "type" : "string",
                "value" : "d98fb586-1a60-47db-93f6-6317e62818f9",
                "op" : "eq"
    "ok_actions": [],
    "repeat_actions": false,
    "severity": "moderate",
    "state": "ok",
    "type": "event"
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-29 04:27:47 -0600

Shaoman Zhang gravatar image

Do you configure ceilometer/event_pipeline.yaml to post events to aodh-listener service? Like this:

sinks: - name: event_sink transformers: publishers: - notifier:// - notifier://?topic=alarm.all

edit flag offensive delete link more


Hi, I am able to track the events in aodh listener and notifier logs. Basically the alarm condition is met. But still the REST api is not called. I even checked the tcpdump. Any idea ?

siddsr gravatar imagesiddsr ( 2017-07-28 10:25:56 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2017-06-27 08:16:25 -0600

Seen: 133 times

Last updated: Jun 29 '17