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

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

问题描述

我设置了警报,当我的负载均衡器使用 HTTPCode_Backend_5XX 指标和 sum 统计数据抛出 5xx 时,我会通知我.问题是 sum 将 0 注册为没有数据点,因此当没有抛出 5xxs 时,警报被视为数据不足.这尤其令人沮丧,因为我有 SNS 设置,可以在出现过多 5xxs(警报状态)以及一切恢复正常时通知我.令人讨厌的是,0 5xxs 意味着我们处于 INSUFFICIENT DATA 状态,但 1 5xx 意味着我们处于 OK 状态,所以 1 5xx 会触发每个人都得到通知,一切正常.有没有办法解决?理想情况下,我希望任何东西中的 0 都显示为零数据点,而不是根本没有数据(数据不足).

解决方案

截至

您还可以使用 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天全站免登陆