Arithmetic operations for Stackdriver monitoring charts

笑着哭i 提交于 2019-12-10 17:11:46

问题


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

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{*}).

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?


回答1:


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.

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 metric names begin custom.googleapis.com/, which is different from the built-in metrics. "



来源:https://stackoverflow.com/questions/47299307/arithmetic-operations-for-stackdriver-monitoring-charts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!