I wanna create ONE alarm for 5 ec2 instances where when CPUUtilization is above 80% for either one or all of them, I will be notified via email. The SNS part is all set up, but I can’t find a way to set up one alarm for multiple instance’s CPUUtilization metric.
Is there a way to achieve that?
Composite alarm is what you are looking for
I believe to create a composite alarm, you still have to create all the alarms and then select them to be one composite alarm
You can’t do this as far as i know. Prometheus has this. Night want to look into that if you are open to use something other than cloudwatch.
You can define a single rule and it will alert for any instance
Put them into a fixed AutoScaling Group, and alarm when Max statistic on the AutoScaling Group CPU metric goes > 80%
Alternatively a single CloudWatch metric alarm can aggregate up to 10 metrics at a time (metric math alarm), so SORT the 5 instances by average CPU and alarm > 80%