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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠