A composite alarm includes a rule expression that takes into account the alarm states of other alarms that you have created. The composite alarm goes into ALARM state only if all conditions of the rule are met. The alarms specified in a composite alarm’s rule expression can include metric alarms and other composite alarms.
Using composite alarms can reduce alarm noise. You can create multiple metric alarms, and also create a composite alarm and set up alerts only for the composite alarm. For example, a composite might go into ALARM state only when all of the underlying metric alarms are in ALARM state.
Go to CloudWatch Alarm and select any 2 alarms. if you created a Metric alarm and a Anomaly Detection alarm, choose those.
Create composite alarm
The following screen should look like the one below. Per the default condition the composite alarm will get triggered when either of the child alarms are in
ALARM("Metric_Alarm_Test") OR ALARM("AD_Alarm_Test")
You can customize the rule to the needs as well.
ALARM("Metric_Alarm_Test") AND ALARM("AD_Alarm_Test")
ALARM("Metric_Alarm_Test") OR (ALARM("AD_Alarm_Test") AND ALARM("Another_Alarm"))
Create a new topic to create a new SNS topic to send the notification to and provide your email address.
Create topicto create the SNS topic
Next, give the alarm a name and click
Nextagain to review the configuration
Createto create the alarm
Once you have created the alarm, you will notice that the alarm is now in
Insufficient data state which indicates that there is not enough data to validate the alarm. Waiting for 5 minutes will change the alarm state to
OK in green.
Notice the child alarms part of the composite alarm being shown as well.