how to use ceilometer alarm to monitor fip create

asked 2016-03-18 01:38:36 -0500

felix_li gravatar image

I know how to monitor cpu usage, command like below: ceilometer alarm-threshold-create --name alarm-name --description alarm-desc --meter-name cpu.util --threshold 10 --comparison-operator gt --statistic avg --period 600 --evaluation-periods 1 This means monitor cpu.util in one period(600s), if cpu usage larger than 10%, alarm is triggerd, and this command works in my setup.

Now I want to monitor floating ip creating, once create a fip, alarm will be triggered, I use the command like below: ceilometer alarm-threshold-create --name alarm_name --description alarm_desc --meter-name ip.floating.create --threshold 1 --comparison-operator gt --statistic avg --period 600 --evaluation-periods 1 But this command is not working in my setup, I have following questions: 1. Is my command correct or not, the --statistic here, supported are ['max', 'min', 'avg', 'sum', 'count'], should I use count or ave is also OK, avg seems not reasonable for fip creating. Also I tried count, still not working in my setup. 2. event is disalbed in my setup(in configure file, store_event is set to false), must I enable store_event if I want to monitor fip create. 3. Any suggestion will be helpful, also I checked in wiki, only give an example of cpu_util, no much about others, any uesful link will also be great

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-21 03:23:40 -0500

yprokule gravatar image


What version of OpenStack U r using?

Anyway U r using --comparison-operator gt and I'm not sure if creating fip will result in 2 samples for 'ip.floating.create' meter. Please double check this.

Also I'd recommend to enable debug and check alarm-evaluator.log

BTW in Liberty there is introduced an 'event-alarm' evaluator that actually is more suitable for your scenario.

edit flag offensive delete link more


Txs for the answer, I use kilo. I agree that event is better, but that is not support event alarm. I checked log file under ceilometer, when create fip, no logs about fip can be seen. I doubt fip meter is not defined in my setup. But from what I got in wiki, networking meter are exist by default.

felix_li gravatar imagefelix_li ( 2016-03-21 06:27:09 -0500 )edit

This definitely is a good point to check.

Also meter ip.floating.create is derived from notification - hence check if Neutron is configured to send notifications.

yprokule gravatar imageyprokule ( 2016-03-22 03:20:15 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-03-18 01:38:36 -0500

Seen: 268 times

Last updated: Mar 21 '16