Search code examples
kubernetesgoogle-cloud-platformstackdriverheapstergoogle-cloud-monitoring

How to set up alert on a custom metric in Stackdriver Monitoring?


When I try to create an alerting policy in Stackdriver Monitoring, my custom metrics do not show up in the dropdown list. When I try to add a chart in the Stackdriver Monitoring dashboard, they show up. Is there something more I need to do to make these custom metrics alertable?

These custom metrics were created using heapster on kubernetes. I'm still on the Stackdriver Premium trial.

Here is a screenshot of the resource type list when creating a chart.

enter image description here

Here is a screenshot of the resource type list when creating an alerting policy condition.

enter image description here


Solution

  • you should have access to alert on the same custom metrics in the dropdown, and be able to choose "Custom Metrics" as the RESOURCE TYPE. Maybe check your permissions / logged in account, it could be different between the two cases. If it isn't, hit the "Send Feedback" button at the bottom right of the screen and add my name to the text. Thanks.