我配置了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警报
发布评论