如何让CloudWatch在每次超过阈值时发送警报? [英] How to get CloudWatch to send an alarm every time a threshold has been breached?

查看:152
本文介绍了如何让CloudWatch在每次超过阈值时发送警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前正在使用此脚本进行监视:

Currently using this script to monitor:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html

首次运行脚本时,我们会收到电子邮件,但此后电子邮件将再也不会发送(即使阈值不断被破坏)。

When the script is first run we receive the email, but after that the email never sends (even though the threshold has been breached continuously).

推荐答案

Amazon CloudWatch警报仅在警报状态更改时才会触发通知。当状态为Alert且无法配置此类行为时,它将连续发送警报。

Amazon CloudWatch alarms will only trigger notifications when the state of the Alarm changes. It will not continuously send alarms when the state is Alert and it is not possible to configure such behavior.

一个例外是触发自动缩放更改-在状态为警报时,它将不断尝试触发Auto Scaling策略。

One exception to this is triggering Auto Scaling changes -- it will continually try to trigger an Auto Scaling policy while the state is in Alarm.

这篇关于如何让CloudWatch在每次超过阈值时发送警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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