Martin
Martin

Reputation: 190

CloudWatch alarm always at insufficient data state

I will want to get notified whenever there is a 500 error in my service. So, I created a metric filter in CloudWatch under a specific log group. Pattern is correct as per my application log logic. Metric is chosen as 1. Alarm is configured too with parameter values as below -

I manually called APIs of my application and generated 500 many time over many consecutive minutes. I have also used apache bench to generate such errors in bulk for consecutive minutes.

But always I do see that my alarm is in insufficient data. As a results, email notification which is configured as action to alarm does not get called.

How to get rid of the problem? Any suggestion will be helpful.

Upvotes: 3

Views: 3741

Answers (1)

Kannaiyan
Kannaiyan

Reputation: 13025

I got the same issue as well.

INSUFFICIENT_DATA now got fixed with missing data in cloudwatch. Refer to cloudwatch console or api's on what to do when metric data is missing.

The only error I have seen is posting data to the right metric name and dimension. And the value of it.

If the value is always zero or undefined, the alarm will never get triggered.

Upvotes: 1

Related Questions