Explain CloudWatch alarm states and missing data handling.
AdvancedConceptObservability, Security Services and IaC
Answer
States are OK, ALARM and INSUFFICIENT_DATA. An alarm evaluates a metric over EvaluationPeriods and trips on DatapointsToAlarm out of M (for example 3 out of 5). TreatMissingData can be missing, notBreaching, breaching or ignore; for request-count style metrics that vanish at zero traffic, notBreaching avoids false alarms, while for heartbeats breaching is correct.
Actions: SNS, Auto Scaling, EC2 actions, Systems Manager OpsItems.
More on Observability, Security Services and IaC
How are CloudWatch metrics organized?BeginnerHow do CloudWatch Logs groups, streams and Logs Insights work?BeginnerWhat is the CloudWatch Embedded Metric Format?AdvancedWhat does EC2 not report to CloudWatch by default?IntermediateWhat does CloudTrail record?BeginnerWhat is AWS Config and how do rules work?Intermediate