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
已提问 4 个月前451 查看次数
2 回答
0

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

profile picture
专家
已回答 4 个月前
  • 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
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则