Search code examples
amazon-web-servicesamazon-cloudwatchamazon-cloudwatch-metrics

Continuous alerts in Cloudwatch


I have an instance in AWS that from time to time it's CPU cross the threshold of 90%. I have created an alert for this, however I saw that I received one notification only and it was during the first 5 minutes while the CPU was at 100% for 2 hours. How do I set the metric so I will keep getting notifications all the time?


Solution

  • Cloudwatch does not send notifications continuously if the threshold is breached. Cloudwatch can send a Notification only when the state changes.

    Alarms invoke actions for sustained state changes only. CloudWatch alarms do not invoke actions simply because they are in a particular state, the state must have changed and been maintained for a specified number of periods. Ref: AWS Cloudwatch Documentation

    One possible solution that I can think of is to create a Multiple Cloudwatch Alarms with Multiple thresholds.