Is it possible to query the CPU usage of a compute instance using the gcloud api?
When testing load on one main compute instance, I noticed that the top figure shows only 10% CPU usage. However, in the compute console, instance usage was 100%. I believe top shows the use of that host, while the compute console shows the use of the container. Since the container is more appropriate for my load testing, I was wondering if this metric can be queried using the api command?
$ gcloud compute cpu-utilization "instance-name".
Something like that.
+3
source to share