简体   繁体   中英

get alert when instance is not active in GCE

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM