google-app-enginegoogle-compute-enginegce-instance-group

Google Compute Engine, Managed Instance Group, Autoscaler with custom metric wrtitten from App Engine


I want to use the Autoscaler for Managed Instance Groups with a custom metric I write to from App Engine.

However the Autoscaler documentation states:

The standard metric must contain data for a gce_instance monitored resource. You can use the timeSeries.list API call to verify whether a specific metric exports data for this resource.

Can I create the metric as type "gce_instance" and write to it from GAE? Or did I misinterpret the documentation section and I can just go ahead without special consideration for this section?


Solution

  • Google App Engine (GAE) users should use "global" as a resource type because the resource type gae_app is not permitted in custom metrics. You are good to create custom metric as "global" and write to it from GAE. You can find this documentation as a reference.