未触发Amazon Cloudwatch警报 [英] Amazon Cloudwatch alarm not triggered

查看:98
本文介绍了未触发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警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆