Stackdriver自定义指标聚合警报 [英] Stackdriver custom metric aggregate alerts

查看:122
本文介绍了Stackdriver自定义指标聚合警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Google Compute Engine和Stackdriver上使用Kubernetes. Kubernetes指标作为自定义指标显示在Stackdriver中.我成功地建立了一个仪表板,其中的图表显示了一些自定义指标,例如节点cpu预留".我什至可以设置所有节点cpu预留的总平均值,以查看我的Kubernetes集群CPU预留总量是否过高.查看屏幕截图.

I'm using Kubernetes on Google Compute Engine and Stackdriver. The Kubernetes metrics show up in Stackdriver as custom metrics. I successfully set up a dashboard with charts that show a few custom metrics such as "node cpu reservation". I can even set up an aggregate mean of all node cpu reservations to see if my total Kubernetes cluster CPU reservation is getting too high. See screenshot.

我的问题是,我似乎无法针对自定义指标的平均值设置警报.我可以在每个节点上设置警报,但这不是我想要的.我也可以设置组聚合阈值条件",但是自定义指标似乎不适用于该条件.请注意,下拉菜单中没有自定义指标".

My problem is, I can't seem to set up an alert on the mean of a custom metric. I can set up an alert on each node, but that isn't what I want. I can also set up "Group Aggregate Threshold Condition", but custom metrics don't seem to work for that. Notice how "Custom Metric" is not in the dropdown.

是否可以为自定义指标的集合设置警报?如果没有,当Kubernetes集群的CPU预留空间变得过高时,是否可以通过某种方式提醒我?

Is there a way to set an alert for an aggregate of a custom metric? If not, is there some way I can alert when my Kubernetes cluster is getting too high on CPU reservation?

推荐答案

有关自定义指标汇总的警报目前在Stackdriver中不可用.我们正在考虑针对您面临的问题的各种解决方案. 请注意,有时可以直接警告问题症状,而不是监视基础资源.例如,如果您担心CPU是因为X发生并且用户注意到,并且X不好-您可以考虑针对X的症状发出警报,而不是针对CPU发出警报.

alerting on an aggregation of custom metrics is currently not available in Stackdriver. We are considering various solutions to the problem you're facing. Note that sometimes it's possible to alert directly on symptoms of the problem rather than monitoring the underlying resources. For example, if you're concerned about cpu because X happens and users notice, and X is bad - you could consider alerting on symptoms of X instead of alerting on cpu.

这篇关于Stackdriver自定义指标聚合警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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