Ask Your Question
0

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

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

siddsr gravatar image

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

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": [
        "http://10.206.53.111:8080/rest/api/v1.0/alarm"
    ],
    "description": "An event alarm",
    "enabled": true,
    "insufficient_data_actions": [
        "http://10.206.53.111:8080/rest/api/v1.0/alarm"
    ],
    "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
0

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

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

Comments

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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 90 times

Last updated: Jun 29 '17