Define a breach and the evidence required
How thresholds, anomaly detection, evaluation windows, and missing-data settings determine alarm states and trigger notifications or automated responses. · associate
A CloudWatch metric alarm evaluates a metric statistic against a condition. A static threshold is a fixed boundary, such as average inference latency greater than 500 milliseconds. Choose the comparison direction deliberately: high latency is bad, while low successful-processing throughput may be bad.
Anomaly detection models expected behavior and produces a changing band. An alarm can watch above the band, below it, or outside either boundary. This suits metrics with predictable daily or weekly patterns. Unusual behavior is not necessarily a business failure; a fixed service-level limit can still need a static threshold.
The period is the time represented by each evaluated point. Evaluation periods, N, and datapoints to alarm, M, define an M-of-N rule. With complete data, 2-of-3 requires two breaching points among the latest three; they need not be consecutive. With N fixed, raising M requires more breaches. Increasing N while keeping M fixed allows breaches farther apart to count together; it does not require more persistent breaching.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.