Stackdriver监控图表的算术运算 [英] Arithmetic operations for Stackdriver monitoring charts

查看:79
本文介绍了Stackdriver监控图表的算术运算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的服务提供的自定义指标设置Stackdriver仪表板.

I'm trying to setup a Stackdriver dashboard for my custom metrics that my services provide.

尤其是,我首先使用常规的custom/grpc/time_ms度量标准,该度量标准是一个量规,并带有status标签.我希望能够设置图表并为指标的成功率(例如count:custom/grpc/time_ms{status:OK} / count:custom/grpc/time_ms{*}之类)发出警报.

In particular I'm starting with general custom/grpc/time_ms metric that is a gauge and have status label on it. I'd love to be able to set up a chart and alert for success rate of the metric(something like count:custom/grpc/time_ms{status:OK} / count:custom/grpc/time_ms{*}).

在上一个项目中,我使用了Datadog,它是在此非常容易.但是我既没有在UI中也没有在Stackdriver文档中看到任何类似的功能.所以我想知道是否没有记录或根本不支持它?

With my previous project I used Datadog and it was pretty easy to do so there. But I don't see any similar functionality neither in the UI nor in Stackdriver documentation. So I was wondering if it's not documented or simply not supported?

推荐答案

是的,您可以创建自定义指标并通过Stackdriver对其进行监控,还可以从WebApplication创建包含自定义图表的新仪表板.

Yes, you can create custom metrics and monitor them from Stackdriver and it is possible as well to create new dashboards from the WebApplication, containing custom charts.

还支持由自定义指标触发的策略,您可以为该指标或其变化率设置阈值,如果自定义指标不再提供任何数据(即指标缺失"),则可以发送通知. 您可以在此处找到更多信息.

Policies triggered by custom metrics are supported as well, you can set threshold values for the metric or for its the rate of change or send a notification if no data was provided anymore by the custom metric, i.e. "Metric absence". You can find more information about alerting here.

考虑文档中所述的内容: 自定义指标与Stackdriver Monitoring的内置指标相同,除了:

Consider that as stated by the documentation: "Custom metrics are the same as Stackdriver Monitoring's built-in metrics, except:

  • 您可以创建和删除它们

  • You can create and delete them

您可以向他们写入时间序列数据

You can write time series data to them

自定义指标名称以custom.googleapis.com/开头,这与内置指标不同. "

Custom metric names begin custom.googleapis.com/, which is different from the built-in metrics. "

这篇关于Stackdriver监控图表的算术运算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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