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 個月前檢視次數 450 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南