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
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack