[Openstack] [Ceilometer] Example "create alarm" via REST API
Mark Vlcek (mavlcek)
mavlcek at cisco.com
Thu Mar 27 23:57:04 UTC 2014
Hi All,
Can somebody give me an example of how I’d create an alarm via the Telemetry (aka Ceilometer) REST API? I can’t for the life of me find a simple example online, say for example, how to set an alarm for when cpu_util > 80% for a given running instance.
I saw this example in a presentation somewhere, but it’s not exactly self-explanatory.
POST /v2/alarms
{
"alarm_actions": [
"http://site:8000/alarm"
],
"insufficient_data_actions": [
"http://site:8000/nodata"
],
"ok_actions": [
"http://site:8000/ok"
],
"comparison_operator": "gt",
"description": "An alarm",
"evaluation_periods": 2,
"matching_metadata": {
"key_name": "key_value"
},
"meter_name": "storage.objects",
"name": "SwiftObjectAlarm",
"period": 240,
"statistic": "avg",
"threshold": 200
}
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140327/98f65b1f/attachment.html>
More information about the Openstack
mailing list