I would like to call GCP API
call to get vCPU's
total count. If all my instances use 280 vCPUs
, I want to get 280 in the response.
I can get the vCPU
limit via the API metrics using "/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus"
, but not the current vCPU
count.
Is there a monitoring API for that purpose?
Help is appreciated. Thanks.