3

I want to be alerted when instances are migrated. I can see the list of operations in Console (http://d.pr/i/16fpz), but how to get it in realtime (via email or in Slack)?

Art
  • 157
  • 1
  • 4

2 Answers2

4

You can use Google Cloud Logging to create a log based Metric and set an alert on that metric using Google Cloud Monitoring. You can refer to this link for steps and more details. However, one thing to keep in mind is that Google Cloud Logging is Beta release and is not covered by any SLA.

Faizan
  • 1,438
  • 10
  • 18
-2

When Autohealing is enabled for instance group, the instances are shuts down when health check fails. In that case you can attach a shutdown script with the instances that can be used for any purpose.

rishi
  • 101
  • 1