For Compute Engine of GCE, I use stackdriver monitoring for monitoring and alert. For most of the general metrics like CPU, disk IO, memory ... etc is available and can set alert for those metrics based or dead-or-alive by process name.
However I cannot find any metrics related to status of GCE instance itself.
My use-case is so simply. I'd like to know if the instance id down or not. Any suggestion appreciated. thanks.
think the instance status not a monitoring metric; there's just instance/uptime
available.
(and I have no clue what it would return when it is terminated
, possibly worth a try).
but one can check for servers with Uptime Checks and then report the Incident.
and one can get the instance status with gcloud compute instances describe instance01
.