微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

尽管没有数据,但 CloudWatch 警报仍处于 ALARM 状态

如何解决尽管没有数据,但 CloudWatch 警报仍处于 ALARM 状态

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

enter image description here

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

解决方法

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。