Cloudwatch alarm send notify when 1 datapoint exceed the threshold 3

0

i have create aws cloudwatch alarm with threshold: 3, Period: 60 seconds, Evaluation Periods: 3, Datapoints to Alarm:2 but it send alarm when only have 1 datapoint exceed the threshold 3.

Cloudwatch Alarm

Tu Phan
asked 3 months ago413 views
2 Answers
0

I believe it’s because your metric has insufficient data therefore the only way is to alarm.

profile picture
EXPERT
answered 3 months ago
  • I also have state: OK and it change to Alarm only with 1 datapoint

    Alarm Details:

    • Name: alarm-test
    • Description:
    • State Change: OK -> ALARM
    • Reason for State Change: Threshold Crossed: 1 out of the last 3 datapoints [4.0 (14/01/24 14:49:00)] was greater than the threshold (3.0) (minimum 2 datapoints for OK -> ALARM transition).
    • Timestamp: Sunday 14 January, 2024 14:57:40 UTC
    • AWS Account: 910358458126
    • Alarm Arn: arn:aws:cloudwatch:ap-southeast-1:910358458126:alarm:alarm-test
  • Can you confirm what this is set to in your alarm? Datapoints to alarm

  • Yes, i set Datapoints to alarm: 2 and Evaluation Periods: 3

0

Hi, you see that the alarm flip with only one datapoint in your case. I believe your case is exactly described in https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data on the last line of the table, which shows that when the "Treat Missing Data" option is set to "Missing", an alarm with only one breaching datapoint flips to the ALARM state. The reason is that the "Missing" behaviour flips the alarm to INSUFFICIENT_DATA only when ALL datapoints evaluated are missing. Otherwise the alarm tries to evaluate the status with as little data as available, even if that's only one datapoint. "Missing" is the default behaviour, so if you didn't specify a value, this is what is happening.

profile pictureAWS
Jsc
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions