1

我有一个基于 DynamoDB 指标 WriteThrottleEvents 的 CloudWatch 警报。9 月份有一个油门数据点导致警报进入 ALARM 状态,但此后没有其他油门数据点,但警报仍处于 ALARM 状态。警报之前将“处理丢失的数据”设置为ignore(最初解释了为什么它保持在 ALARM 状态),但是我现在将其更改为missing,但警报仍处于 ALARM 状态,尽管没有数据点。为什么它没有将状态更改为“数据不足”? 在此处输入图像描述

{
  "MetricAlarms": [
    {
      "AlarmName": "WriteThrottleEvents_Alarm",
      "AlarmArn": "******************",
      "AlarmConfigurationUpdatedTimestamp": "2021-02-25T20:07:44.960000+00:00",
      "ActionsEnabled": true,
      "OKActions": [],
      "AlarmActions": ["******************"],
      "InsufficientDataActions": [],
      "StateValue": "ALARM",
      "StateReason": "Threshold Crossed: 1 out of the last 1 datapoints [1.0 (22/09/20 18:21:00)] was greater than or equal to the threshold (1.0) (minimum 1 datapoint for OK -> ALARM transition).",
      "StateReasonData": "{\"version\":\"1.0\",\"queryDate\":\"2020-09-22T18:22:44.912+0000\",\"startDate\":\"2020-09-22T18:21:00.000+0000\",\"unit\":\"Count\",\"statistic\":\"Average\",\"period\":60,\"recentDatapoints\":[1.0],\"threshold\":1.0}",
      "StateUpdatedTimestamp": "2020-09-22T18:22:44.915000+00:00",
      "MetricName": "WriteThrottleEvents",
      "Namespace": "AWS/DynamoDB",
      "Statistic": "Average",
      "Dimensions": [
        {
          "Name": "TableName",
          "Value": "table-one"
        }
      ],
      "Period": 60,
      "Unit": "Count",
      "EvaluationPeriods": 1,
      "DatapointsToAlarm": 1,
      "Threshold": 1.0,
      "ComparisonOperator": "GreaterThanOrEqualToThreshold",
      "TreatMissingData": "missing"
    }
  ],
  "CompositeAlarms": []
}

4

1 回答 1

0

您可以将缺失数据设置为notBreaching. 这样,缺少数据点将被视为良好:

缺失的数据点被视为“好”并且在阈值内,

于 2021-03-07T23:14:50.723 回答