Send Heat alarm to a specified webhook

asked 2017-09-08 01:52:02 -0500

CDOT gravatar image

I am able to Scale Down using the following alarm :

  cpu_alarm_low:
    type: OS::Ceilometer::Alarm
    properties:
      meter_name: cpu_util
      statistic: avg
      period: 60
      evaluation_periods: 1
      threshold: 10
      alarm_actions:
        - {get_attr: [scaledown_policy, alarm_url]}
      comparison_operator: lt

However, I would like to send the alarm to a different IP:PORT webhook at the same time. If I change the alarm to :

cpu_alarm_low:
    type: OS::Ceilometer::Alarm
    properties:
      meter_name: cpu_util
      statistic: avg
      period: 60
      evaluation_periods: 1
      threshold: 10
      alarm_actions: ['http://192.168.124.63:13019', 'http://192.168.109.62:13016']
      comparison_operator: lt

Through the above alarm, I can receive alarms at the two ip:port specified.

How do I combine these two?

edit retag flag offensive close merge delete

Comments

Not sure what you trying to achieve. Have you tried to notify two actions?

alarm_actions:
  - {get_attr: [scaledown_policy1, alarm_url]}
  - {get_attr: [scaledown_policy2, alarm_url]}
Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-09-08 08:08:16 -0500 )edit

I want to send alarm to a scaledown_policy and a http://IP:PORT to display the alarm notification in my custom GUi

CDOT gravatar imageCDOT ( 2017-09-10 23:39:37 -0500 )edit