I can't find how to see the number of CPUs and memory used in a VM instance of google-cloud. I'm trying to write a function that checks all of my running VM instances and stop every instance that uses more CPUs or memory than limited (depends)
I've created an instance on google-cloud-platform and I want to create a function that runs manually by me that will check if any of the instances is over the limit. How can I check a specific VMs' details?