Ask Your Question

create an alarm in ceilometer

asked 2013-10-25 14:53:34 -0500

cloud gravatar image

Hello I have a running instance of ceilometer in my system, I want to create an alarm through ceilometer without using heat template. There is a command line API called ceilometer alarm-create

 ceilometer alarm-create --name <NAME> [--project-id <PROJECT_ID>]
                               [--user-id <USER_ID>]
                               [--description <DESCRIPTION>] [--state <STATE>]
                               [--enabled {True|False}]
                               [--alarm-action <Webhook URL>]
                               [--ok-action <Webhook URL>]
                               [--insufficient-data-action <Webhook URL>]
                               [--repeat-actions {True|False}]
                               [--period <PERIOD>]
                               [--evaluation-periods <COUNT>] --meter-name
                               <METRIC> [--statistic <STATISTIC>]
                               [--comparison-operator <OPERATOR>] --threshold
                               [--matching-metadata <Matching Metadata>]

Now I want the alarm such a way that it will trigger an instance creation after a value is greater than the threshold. I know that [--alarm-action <webhook url="">] serves the purpose. But what should i put in the Webhook url?? How do i genereate a webhook url which will tell ceilometer to create an instance? Can some bpdy help me with regards to this web hook url</webhook>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-10-25 23:05:49 -0500

asalkeld gravatar image

You will need program to receive the webhook and do what every you want. As far as I know Heat is the only autoscaling program so far.

edit flag offensive delete link more


Is there any other program apart from heat that could give the webhook url?

cloud gravatar imagecloud ( 2013-10-29 13:22:15 -0500 )edit

Not any that I am aware of, but you could write one. You just need a rest server to receive the webhook.

asalkeld gravatar imageasalkeld ( 2013-10-29 17:45:01 -0500 )edit

Hi, can we specify a webhook URL, which invokes a Heat stack? what is the format of the webhook URL?

garyduan gravatar imagegaryduan ( 2014-08-21 22:02:09 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-25 14:53:34 -0500

Seen: 951 times

Last updated: Oct 25 '13