Is it possible to query cpu utilization of a compute instance using the gcloud api? -


when load testing single core compute instance noticed top showing 10% cpu utilization. however, in compute console utilization of instance 100%. believe top showing utilization of host while compute console showing container utilization. since container more relevant load testing wondering if possible query metric via api command?

$ gcloud compute cpu-utilization "instance-name".  

something of sort.

you can enable google cloud monitoring api project , query api cpu metric instance(s).

you can find more information on cloud monitoring api on link. hope helps.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -