Search code examples
google-cloud-platformstackdrivergoogle-cloud-monitoring

Google Cloud Metric to monitor instance group size


I can find a graph of "Group size" in the page of the instance group. However, when I try to find this metric in Stackdriver, it doesn't exist.

I tried looking in the metricDescriptors API, but it doesn't seem to be there either.

Where can I find this metric?

I'm particularly interested in sending alerts when this metrics goes to 0.

enter image description here


Solution

  • There is not a Stackdriver Monitoring metric for this data yet. You can fetch the size using the instanceGroups.get API call. You could create a system that polls this data and posts it back to Stackdriver Monitoring as a custom metric and then you will be able to access it from Stackdriver.