简体   繁体   English

Cloudwatch 中的持续警报

[英]Continuous alerts in Cloudwatch

I have an instance in AWS that from time to time it's CPU cross the threshold of 90%.我在 AWS 中有一个实例,它的 CPU 不时超过 90% 的阈值。 I have created an alert for this, however I saw that I received one notification only and it was during the first 5 minutes while the CPU was at 100% for 2 hours.我为此创建了一个警报,但是我看到我只收到一个通知,并且是在前 5 分钟内,而 CPU 处于 100% 的状态持续了 2 小时。 How do I set the metric so I will keep getting notifications all the time?如何设置指标以便我一直收到通知?

Cloudwatch does not send notifications continuously if the threshold is breached.如果违反阈值,Cloudwatch 不会连续发送通知。 Cloudwatch can send a Notification only when the state changes. Cloudwatch 只能在状态发生变化时发送通知。

Alarms invoke actions for sustained state changes only.警报仅针对持续状态更改调用操作。 CloudWatch alarms do not invoke actions simply because they are in a particular state, the state must have changed and been maintained for a specified number of periods. CloudWatch 警报不会仅仅因为它们处于特定状态而调用操作,该状态必须已更改并在指定的时间段内保持。 Ref: AWS Cloudwatch Documentation参考: AWS Cloudwatch 文档

One possible solution that I can think of is to create a Multiple Cloudwatch Alarms with Multiple thresholds.我能想到的一种可能的解决方案是创建一个具有多个阈值的多个 Cloudwatch 警报。

由于上面的答案已经说它不会再次触发,您可以做的一件事是将警报条件更改为非常大的值,然后原始值和状态更改将再次发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM