Ask Your Question

How does Heat set alarm configuration and get alarm back from Ceilometer?

asked 2016-07-03 14:40:59 -0500

Shayne gravatar image

updated 2016-07-04 00:14:15 -0500

Hi all,

Currently, I am working on Heat auto-scaling. I already read some documents about auto-scaling in Heat. I know that Heat uses Ceilometer API to set alarm configuration and get alarm back from Ceilometer via Webhook. These actions are shown in HOT template (OS::Heat::Ceilometer::Alarm). I tried to look at Heat code but I still cannot get where (or what modules) handle alarm actions. In particularly:

  1. what module will be responsible for creating alarm url which then is received by Ceilometer
  2. what module will receive and handle alarm url triggered from Ceilometer.


edit retag flag offensive close merge delete


Could anyone help me?

Shayne gravatar imageShayne ( 2016-07-04 07:07:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-05 02:34:46 -0500

Shaoman Zhang gravatar image
  1. Heat set the alarm policy with OS::Heat::ScalingPolicy, and generate alarm url.
  2. Ceilometer handle the alarm url when the alarm condition is met.
edit flag offensive delete link more


Thanks.. I am sorry for not being clear! in #2. I mean after Ceilometer handles the alarm url, it has to trigger this url to Heat via Webhook. So, I wonder what module in Heat will receive the alarm url from Ceilometer.

Shayne gravatar imageShayne ( 2016-07-05 03:15:22 -0500 )edit

Heat provides the webhook, and Ceilometer call it when alarm is trigered, Heat need not to get the feedback again.

Shaoman Zhang gravatar imageShaoman Zhang ( 2016-07-05 03:56:24 -0500 )edit

If Heat does not get the feedback, please kindly let me know how and when Heat does auto-scaling. My understanding is that Ceilometer will send a HTTP Post to Heat when CPU reaches to threshold. Is it correct? Thanks.

Shayne gravatar imageShayne ( 2016-07-05 13:13:17 -0500 )edit

Heat provides autoscaling webhook with OS::Heat::ScalingPolicy, and Ceilometer call it directly when alarm happened.

Shaoman Zhang gravatar imageShaoman Zhang ( 2016-07-05 20:34:47 -0500 )edit

Thanks Shaoman, I still get confused because I saw the feedback from Ceilometer in the following link (figure in section 3.1.1). Could you elaborate it? Link:

Shayne gravatar imageShayne ( 2016-07-05 20:58:25 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2016-07-03 14:39:01 -0500

Seen: 740 times

Last updated: Jul 05 '16