I am trying to prepare a VM Availability Report showing the uptime and downtime in % for compute Engine Instances. For this i need to gather the following metrics:
When I went through the metrics api, in https://cloud.google.com/monitoring/api/metrics_gcp#gcp-monitoring I got the following apis:
If i need to get the total time the vm was available since its creation should i use the uptime or uptime_total. Can anyone pls tell me what is the difference between the 2 apis?
If I need to calculate the downtime of the vm I am finding no rest apis for that, is there any api which can give the times the VM has been down in a month or so?
Thanks for your help