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?
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. "