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
Post a Comment