Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Platform: how to monitor memory usage of VM instances

I have recently performed a migration to Google Cloud Platform, and I really like it.

However I can't find a way to monitor the memory usage of the Dataproc VM intances. As you can see on the attachment, the console provides utilization info about CPU, disk and network, but not about memory.

Without knowing how much memory is being used, how is it possible to understand if there is a need of extra memory?

enter image description here

like image 980
Daniele B Avatar asked May 16 '17 01:05

Daniele B


People also ask

How can I check the RAM of my GCP instance?

For Commander to retrieve memory metrics for a GCP instance, the Stackdriver agent must be installed on the instance. To learn how to install the Stackdriver agent, see Installing the Monitoring agent in the Google Cloud documentation. You can install the agent from within GCP or through a Commander command workflow.

Which GCP service can display performance metrics like CPU utilization and memory utilization?

Cloud Spanner provides the following metrics for CPU utilization: Smoothed CPU utilization: A rolling average of total CPU utilization, as a percentage of the instance's CPU resources, for each database.

What GCP is used to manage VM instances?

All features. VM Manager is a suite of tools that can be used to manage operating systems for large virtual machine (VM) fleets running Windows and Linux on Compute Engine.


2 Answers

By installing the Stackdriver agent in GCE VMs additional metrics like memory can be monitored. Stackdriver also offers you alerting and notification features. Nevertheless agent metrics are only available for premium tier accounts.

See this answer for Dataproc VMs.

like image 60
Carlos Avatar answered Sep 20 '22 17:09

Carlos


The stackdriver agent only supports monitoring of RAM of the E2 family at the moment. Other instance types such as N1, N2,... are not supported.

See the latest documentation of what is supported; https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute

Stackdriver merics

like image 31
user2314327 Avatar answered Sep 21 '22 17:09

user2314327