【问题标题】:CloudWatch alarm in ALARM state despite no data尽管没有数据,CloudWatch 警报仍处于 ALARM 状态
【发布时间】:2021-06-05 13:57:04
【问题描述】:

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

{
  "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": []
}

【问题讨论】:

    标签: amazon-web-services amazon-cloudwatch cloudwatch-alarms


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2017-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-10
      • 2019-11-07
      • 2021-03-28
      • 2018-08-13
      • 2021-01-10
      相关资源
      最近更新 更多