避免Cloudwatch中的数据不足? [英] Avoiding INSUFFICIENT DATA in Cloudwatch?

查看:65
本文介绍了避免Cloudwatch中的数据不足?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了警报,以告诉我何时我的负载均衡器使用 sum HTTPCode_Backend_5XX 指标抛出5xx。 >统计。问题是 sum 将0登记为没有数据点,因此当未抛出5xx时,警报将被视为数据不足。这尤其令人沮丧,因为每当我们收到太多5xx(警报状态)并且一切恢复正常时,我都会设置SNS来通知我。烦人的是,0 5xxs表示我们处于数据不足状态,但是1 5xxs表示我们处于 OK 状态,所以1 5xx会触发每个人都知道东西还可以的通知。有没有办法解决?理想情况下,我想将零个数据点显示为零,而不是根本没有数据(数据不足)。

解决方案

截至



您也可以使用 TreatMissingData 属性。


I have alarms set up to tell me when my load balancers are throwing 5xxs using the HTTPCode_Backend_5XX metric with the sum statistic. The issue is that sum registers 0 as no data points, so when no 5xxs are thrown, the alarm is treated as insufficient data. This is especially frustrating, because I have SNS setup to notify me whenever we get too many 5xxs (alarm state) and whenever things go back to normal. Annoyingly, 0 5xxs means we're in INSUFFICIENT DATA status, but 1 5xx means we're in OK status, so 1 5xx triggers everyone getting notified that stuff is OK. Is there any way around this? Ideally, I'd like to just have 0 of anything show up as a zero data point instead of no data at all (insufficient data).

解决方案

As of March 2017, you can treat missing data as acceptable. This will prevent the alarm from being marked as INSUFFICIENT.

You can also set this in CloudFormation using the TreatMissingData property.

这篇关于避免Cloudwatch中的数据不足?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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