how to create a alarm to monitor fip creation

asked 2016-03-18 01:18:23 -0500

felix_li gravatar image

I know how to create a alarm base on cpu_util, command like below: ceilometer alarm-threshold-create --name alarm-name --description alam-des --meter-name cpu.util --threshold 50 --comparison-operator gt --statistic avg --period 600 --evaluation-periods 1 This means to check cpu usage in 1 periods(600s), if >50%, alarm triggered.

But if I want to create a alarm to monitor fip/instance creation, how should I do, what's the command should be, I tired command like this, but seems not working: ceilometer alarm-threshold-create --name alarm_name --description alarm_desc --meter-name ip.floating --period 600 --evaluation-periods 1 --statistic sum --comparison-operator ge --threshold 1 so what the --statistic param should be, opotions are ['max', 'min', 'avg', 'sum', 'count'], which one should I use, should I use count instead of sum, also I tired but seems still not working.

In my setup, I disable the event, so only meter is supported.

Any one can give some help infos, or anywhere I can get some infos, I checked the wiki page about ceilometer, but seems only gives a example of cpu_util, no other methioned.

edit retag flag offensive close merge delete