Adz
Adz

Reputation: 2847

How to get CloudWatch to send an alarm every time a threshold has been breached?

Currently using this script to monitor:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html

When the script is first run we receive the email, but after that the email never sends (even though the threshold has been breached continuously).

Upvotes: 3

Views: 3439

Answers (2)

imriss
imriss

Reputation: 1971

This is an example of a custom metrics that reset itself every hour: Custom CloudWatch metrics with hourly reset. Therefore, the notifications are also repeated every hour, if the alarm has not been resolved.

Upvotes: -1

John Rotenstein
John Rotenstein

Reputation: 269400

Amazon CloudWatch alarms will only trigger notifications when the state of the Alarm changes. It will not continuously send alarms when the state is Alert and it is not possible to configure such behavior.

One exception to this is triggering Auto Scaling changes -- it will continually try to trigger an Auto Scaling policy while the state is in Alarm.

Upvotes: 7

Related Questions