Checkpoint
Install the Logging and Monitoring agents on Linux VM
/ 20
Add an uptime check for Apache VM
/ 20
Add an alert policy for Apache Server
/ 20
Create a dashboard and chart for Apache VM
/ 20
Create logs-based metric
/ 20
Monitoring in Google Cloud: Challenge Lab
- ARC115
- Overview
- Setup and requirements
- Challenge scenario
- Task 1. Install the Cloud Logging and Monitoring agents
- Task 2. Add an uptime check for Apache Web Server on the VM
- Task 3. Add an alert policy for Apache Web Server
- Task 4. Create a dashboard and charts for Apache Web Server on the VM
- Task 5. Create a log-based metric
- Congratulations!
ARC115
Overview
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
Setup and requirements
Before you click the Start Lab button
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources will be made available to you.
This hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
- Access to a standard internet browser (Chrome browser recommended).
- Time to complete the lab---remember, once you start, you cannot pause a lab.
Challenge scenario
As a junior cloud engineer, you are part of a team of people assigned to manage Google Cloud resources in your organization. One of your job requirements in this role is to use the Cloud Logging and Cloud Monitoring services to monitor Apache Web Server activities installed on a virtual machine (VM) instance.
You are expected to have the skills and knowledge for the tasks that follow.
Your challenge
For this challenge, you have been tasked with installing the Cloud Monitoring and Cloud Logging agents on the VM via SSH, create an alert policy for Apache Web Server, set uptime checks for the VM, configure a dashboard, and add a log-based metric for the server that's installed on the VM.
You need to:
- Install the Cloud Monitoring and Cloud Logging agents.
- Add an uptime check and alert policy for Apache Web Server.
- Create a dashboard and chart for the VM and Apache Web Server each.
- Create a log-based metric.
For this challenge lab, a virtual machine (VM) instance named
You can verify the server is running by clicking on the External IP
of the VM.
Each task is described in detail below, good luck!
Task 1. Install the Cloud Logging and Monitoring agents
So for this task, you need to install the Cloud Logging and Cloud Monitoring agents.
-
Connect to the VM instance
provisioned for you via SSH and install the Cloud Logging and Cloud Monitoring agents. -
Enable the Apache Web Server monitoring plugin using the following commands:
Click Check my progress to verify the objective.
Task 2. Add an uptime check for Apache Web Server on the VM
- For this task, you need to verify that your VM is up and running. To do this, create an uptime check with the resource type set to
instance
.
Click Check my progress to verify the objective.
Task 3. Add an alert policy for Apache Web Server
-
Create an alert policy for Apache Web Server traffic that notifies you on your personal email account when the traffic rate exceeds 3 KiB/s.
-
Connect to the instance via SSH and run the following command to generate the traffic:
- Monitor the alert policy that you just created once the traffic rate exceeds 3 KiB/s you should receive an alert on your email id.
Click Check my progress to verify the objective.
Task 4. Create a dashboard and charts for Apache Web Server on the VM
For this task, you need to create a dashboard that's configured with charts.
-
Add the first line chart that has a Resource metric filter,
CPU load (1m)
, for the VM. -
Add a second line chart that has a Resource metric filter,
Requests
, for Apache Web Server.
Click Check my progress to verify the objective.
Task 5. Create a log-based metric
-
Next, create a log based metric that filters for the following values:
Filter Values Resource type VM Logname apache-access Text Payload textPayload:"200" -
Explore the log-based metrics by selecting the metric VM Instance > Apache > Request.
Click Check my progress to verify the objective.
Congratulations!
You have successfully installed The Cloud Logging and Cloud Monitoring agents on a VM, created an alert policy, added a dashboard and set a log-based metric with Apache Web server for your project.
Google Cloud training and certification
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated July 04, 2024
Lab Last Tested July 04, 2024
Copyright 2024 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.