When you build a cloud infrastructure, you might have anywhere from a small to a large number of resources. Checking the needed parameters for each resource that you have in your cloud environment could become hard. That's where monitoring can help you organize and handle the metrics and checks for your resources. Cloud Monitoring is a Google Cloud service that collects metrics, events, and metadata from your Google Cloud environment. Google Monitoring automatically detects all the resources that you are running into your cloud infrastructure and provides a rich visualization tool to work with. By using Cloud Monitoring, you can create dashboards with metrics that you need, create checks on critical resources, and create alerts triggered when certain events happen. In this lab, you will work in a GCP environment where you will find an existent Compute Engine instance to work with. You will install the Ops Agent and then start practicing with Cloud Monitoring. You will create an uptime check and an alert policy triggered when the uptime check fails. You will also create a chart with the CPU metrics of your Compute Engine instance.
Upon completion of this lab, you will be able to:
This lab is intended for:
Basic knowledge of Compute Engine instances is a plus but it's not required.
May 16th, 2025 - Updated lab environment and updated screenshots to reflect the latest UI
May 28th, 2024 - Updated lab to use Debian 12 and Ops Agent
April 29th, 2024 - Resolved command execution issue
January 23rd, 2024 - Updated the instructions and screenshots to reflect the latest UI
May 2nd, 2022 - Updated the instructions and screenshots to reflect the latest UI