未触发Amazon Cloudwatch警报

编程入门 行业动态 更新时间:2024-10-26 22:20:04
本文介绍了未触发Amazon Cloudwatch警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我配置了cloudwatch警报:

I have a cloudwatch alarm configured :

阈值:连续1个周期的大于0,

Threshold : "GreaterThan 0" for 1 consecutive period,

时段:1分钟,

统计信息:和

警报在AWS SQS NumberOfMessagesSent之上配置。队列为空,没有消息发布到该队列。我手动发送了一条消息。我可以看到指标达到峰值,但警报状态仍然可以。我有些困惑,为什么即使满足触发该警报的所有条件,该警报也不会更改其状态。

The alarm is configured on top of AWS SQS NumberOfMessagesSent. The queue was empty and no messages were being published to it. I sent a message manually. I could see the spike in metric but state of alarm was still OK. I am a bit confused why this alarm is not changing its state even though all the conditions to trigger this are met.

推荐答案

I只是借助AWS支持解决了这个问题。您需要将闹钟的时间设置为15分钟左右。这与SQS在将事件的时间戳推送到CloudWatch时如何标记事件的时间戳有关。

I just overcame this problem with the help of AWS support. You need to set the period on your alarm to ~15 minutes. It's got to do with how SQS marks the event's timestamps as it pushes them to CloudWatch.

请放心,将时间段设置为更大的数字不会影响您收到警报的速度。仍然会每隔5分钟从SQS获取数据。

Don't worry, as setting the period to a greater number will not affect how quickly you are alerted of an alarm. It will still get data from SQS every 5 minutes.

更多推荐

未触发Amazon Cloudwatch警报

本文发布于:2023-11-27 06:26:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636963.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   Amazon   Cloudwatch

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!