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

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -