- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.