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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ