how ceilometer send notification to heat in autoscaling feature? Can I get this notification from ceilometer?

asked 2017-06-09 03:17:19 -0600

samah gravatar image

Hello, I want to know if there is a way to be notified by ceilometer when alarm state change in autoscaling. Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-09 11:21:49 -0600

zaneb gravatar image

Aodh (and previously Ceilometer) doesn't know if it is calling Heat or not. It does an HTTP POST to whatever URL you specify as the alarm action. That's often the signal URL of the Heat scaling policy, but it doesn't have to be. And you can specify multiple actions, so you can notify Heat _and_ something else.

edit flag offensive delete link more


So can I execute a function in the alarm action? If it's possible how to do that

samah gravatar imagesamah ( 2017-06-12 08:39:47 -0600 )edit

No, you can only POST to a URL.

zaneb gravatar imagezaneb ( 2017-06-13 08:14:50 -0600 )edit

Ok I understand, what about using a servlet?

samah gravatar imagesamah ( 2017-06-14 03:11:51 -0600 )edit

Yes, you could definitely do that.

zaneb gravatar imagezaneb ( 2017-06-15 10:46:22 -0600 )edit

Could you more explain to me how to do it, what's the form of the url to use and should I put the servlet in the machine that contain openstack? How to call it?

samah gravatar imagesamah ( 2017-06-15 17:19:30 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-06-09 03:17:19 -0600

Seen: 65 times

Last updated: Jun 09 '17