API used by Heat in autoscaling

asked 2017-02-22 09:17:01 -0500

samah gravatar image

Hello, In autoscaling alarms are generated by Heat and by Ceilometer I want to know the API used in this steps. I have searched in ceilometer API also in Heat API and I didn't find what I need. Could any one please help me

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-22 13:22:18 -0500

zaneb gravatar image

Ceilometer (in the past, now it's actually Aodh) calls whatever URL you ask it to. The URL that the Heat autoscaling resources provide (via the signal_url attribute) is for the resource signal API.

edit flag offensive delete link more


So if there is a scale up for example Heat call the API responsable for adding resources? Sorry but I didn't unserstand you very well

samah gravatar imagesamah ( 2017-02-23 01:53:05 -0500 )edit

The user typically passes the URL of the Heat resource signal API to Aodh, and Aodh then posts to that URL when an alarm is triggered. Here's an (outdated) example: http://git.openstack.org/cgit/opensta...

zaneb gravatar imagezaneb ( 2017-02-23 12:20:42 -0500 )edit

Is there an example with Aodh alarm or I just need to change Ceilometer alarm with it, my goal is to use backend api for autoscaling that's why i'm asking and thank you so much for your reply :)

samah gravatar imagesamah ( 2017-02-23 13:30:13 -0500 )edit

Yes, IIRC just change the alarm to OS::Aodh::Alarm and the attribute from alarm_url to signal_url to do it the modern way. I think there's enough backward compatibility code that the example will work as is for now too.

zaneb gravatar imagezaneb ( 2017-02-24 09:07:12 -0500 )edit

ok thanks I will try it

samah gravatar imagesamah ( 2017-02-24 09:32:16 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-02-22 09:17:01 -0500

Seen: 204 times

Last updated: Feb 22 '17