Jacquen
Jacquen

Reputation: 1126

GCP Monitoring App Engine instance memory

In Google Cloud Platform Monitoring, is there any way to monitor memory usage by App Engine instance? I see that there is the Memory usage metric for the GAE Application resource type, but I don't see a Memory usage metric for the GAE Instance resource type.

My particular use case is that I'd like to see (and make alerts based on) memory usage per instance.

Upvotes: 2

Views: 2889

Answers (2)

Conor Smyth
Conor Smyth

Reputation: 1

Google Cloud Platform Monitoring now supports Memory and CPU Utilisation metrics for App Engine Flex. See the full list of metrics here: https://cloud.google.com/monitoring/api/metrics_gcp#gcp-appengine

Also, to visually explore the metrics, see the Cloud Monitoring Metrics Explorer: https://console.cloud.google.com/monitoring/metrics-explorer

Upvotes: 0

Emmanuel
Emmanuel

Reputation: 1494

Currently there's no built-in metric to monitor per instance memory. The only way to monitor the Memory Usage within a GAE Instance is by creating a custom metric, in this link you can find more information about custom metrics.

Just remember that the amount of instances will increase according to the load, so a per instance alert shouldn't reflect the actual load of your application, that's why the memory usage is normally measured by group on the built in metric rather than per instance.

Upvotes: 2

Related Questions