Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Cloudwatch alarm not returning to OK state even though data looks fine

I'm creating new CloudWatch alarms, and while monitoring them some alarms will go into 'In alarm' state for missing data or data breaching the threshold, but will never return to 'OK' even though the metric data looks good. We have one alarm that went into alarm state because of missing data.

The alarm has been configured to alarm when 5 out of 5 data points are below a threshold of 3, with a 5 minute period. The graph shows that the data is being emitted and each data point from the last 7 or so points have been above the 3 threshold. Anyone have any ideas why the alarm hasn't reverted back to the 'OK' state yet?

I'm tracking Allowed Requests from a WebACL. Looking at the average every 5 minutes. I can see the metric on the graph and all the data points look good.

like image 878
Joseph hooper Avatar asked Oct 27 '25 08:10

Joseph hooper


1 Answers

After looking closely it seems like the Unit: Count metric was causing the alarms to get stuck in the alarm state. Once I removed that metric (created alarms through a CloudFormation template) alarms went back to normal.

like image 166
Joseph hooper Avatar answered Oct 28 '25 23:10

Joseph hooper



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!