- Lab
- A Cloud Guru
Creating an Alerting Policy with Cloud Monitoring
An alerting policy describes a set of conditions that you want to monitor within your infrastructure. Alerting policies allow you to include granular information about your architecture to help troubleshoot issues, if needed. In this hands-on lab, we will set up an alerting policy with the help of uptime checks on a Compute Engine instance and then simulate instance failure to test that policy and see if it generates the desired notifications via email and SMS.
Path Info
Table of Contents
-
Challenge
Create an Uptime Check
In the Cloud Monitoring workspace, create an uptime check for your
web-server
instance. To quickly initialize it, limit uptime checks to the US region. -
Challenge
Create the Alerting Policy
Create a new alerting policy selecting any desired notification channels and including any descriptive text you need to convey in the alert.
-
Challenge
Create Notification Channels
In the Cloud Monitoring workspace, configure an SMS and email notification using your cell phone number and email.
-
Challenge
Test the Alerting Policy
Test the alerting policy by stopping your
web-server
instance. You should automatically receive an email and SMS message that there is an incident. Further, view the incident in the Alerting menu in Cloud Monitoring.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.