Efren
Efren

Reputation: 4907

AWS Cloudwatch alarm set to NonBreaching (or notBreaching) is not triggering, based on a log filter

With the following Metric and Alarm combination

The alarm goes to: State changed to OK at 2018/12/17.

Reason: Threshold Crossed: no datapoints were received for 1 period and 1 missing datapoint was treated as [NonBreaching].

And then it doesn't trigger, even though I force the metric > 0

Why is the alarm stuck in OK? How can the alarm become triggered again?

Upvotes: 2

Views: 2248

Answers (1)

Efren
Efren

Reputation: 4907

Solution

Remove the "Unit" property from the stack template Alarm config.

The source of the problem was actually the "Unit" property. This being set to "Count" actually made the alarm become stuck :(

Ensure the stack is producing the same result as a manual alarm setup by checking with the describe-alarms API.

Upvotes: 4

Related Questions