Viren
Viren

Reputation: 5962

Get Memory and Cpu Usages in Google Cloud Compute

How is one supposed to access the CPU usages and Memory usages of all the instances in a given project in Google Cloud Compute?

I'm unable to find anything regarding this in the documentation.

Upvotes: 15

Views: 22556

Answers (4)

Indrajeet Patil
Indrajeet Patil

Reputation: 725

You can CPU, Memory, Network, Disk I/O related information of your instance group into Google Stackdriver. Stackdriver comes with a separate subscription. You can add charts to monitoring your GCP infrastructure into one single/multiple dashboard/s.

You can see detail information in How to monitor GCP infrastructure using stack driver visualization

Upvotes: 3

Igor
Igor

Reputation: 144

You can use Google Cloud Monitoring to see some usage metrics for your systems, and the Google Cloud Monitoring agent to get more precise metrics like memory. See the GCP metrics documentation for a list of all available compute metrics.

Upvotes: 12

Hrvoje
Hrvoje

Reputation: 15152

For memory usage on Debian:

free -m 

in console.

Upvotes: 5

kurtgo
kurtgo

Reputation: 1

if you are using Linux, you can install gnome-system-monitor and ssh -X into the system and launch it.

For Ubuntu on GCP: "apt-get install gnome-system-monitor dbus"

From another linux machine (or if you have cygwin/x installed on windows), just "ssh -X {remote ip}" Then type gnome-system-monitor and it will launch on your desktop.

You could also setup a vncserver on the cloud platform.

Upvotes: 0

Related Questions