traitecoevo / austraits-api-nectar

0 stars 1 forks source link

Alarm notifications #4

Open franksc opened 2 years ago

franksc commented 2 years ago

Any monitoring resource on entering an alarm/alert status should generate a notification to subscribed/interested entities. This could be sending email, posting to a webhook, etc.

franksc commented 2 years ago

The OpenStack way of doing this would be for alarms to post to a Zaqar queue, to which email addresses and other things are subscribed; however, Zaqar component currently not available on Nectar.

OS::Aodh::LBMemberHealthAlarm property 'alarm_actions' can be used to POST to arbitrary URLs/webhooks when resource enters alarm state. It looks like you can't customise the JSON body it sends so target URL would need to know how to parse this.