Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Automate deletion of VM instance from MIG

I am looking for automating the process for removal of VM instances from MIG if it reaches memory or CPU utilization threashold . Any help will be appreciated. 

2 1 101