
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Check that Cloud Monitoring has been enabled
/ 20
Check that the video queue length custom metric has been created
/ 20
Check that a custom log based metric for large video upload rate has been created
/ 20
Check that custom metrics for the video service have been added to the media dashboard
/ 20
Check that an alert has been created for large video uploads
/ 20
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!
This lab is recommended for students enrolled in the Monitor and Log with Google Cloud Observability course. Are you ready for the challenge?
Topics tested:
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 are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
In your new role as Junior Cloud Engineer for Jooli Inc., you're expected to help manage the Cloud infrastructure components and support the video operations team. Common tasks include monitoring resource utilization, analyzing logs, configuring alerts, and reporting on any issues related to Jooli Inc.'s online services.
As you're expected to have the skills and knowledge for these tasks, step-by-step guides are not provided.
Some Jooli Inc. standards you should follow:
e2-medium
.On the first day of your new job, your manager gives you a series of tasks that you must complete. Good luck!
Your primary concern is a media upload function that Jooli Inc. provides. This function allows subscribers to upload video content to edit and transform using Jooli Inc.'s innovative range of cloud based media production tools.
The media upload function is a critical part of the service, and it is vital that Jooli Inc. is aware of any changes in the behavior of the users that might impact performance or cost of the services.
Your tasks today will use Cloud Operations tools to improve the company's ability to identify such changes and respond to them rapidly. Your manager has told you that the company is concerned that recent changes in end user behavior, combined with a new generation of phones and tablets, is fuelling a demand for much higher media such as 4K, and even 8K, video. Storage for the data is a relatively minor concern but the company wants to make sure that resource consumption by the Cloud Functions used for media upload and transcoding do not run into any limits or result in unexpected spikes in billing costs.
A basic Cloud Monitoring dashboard, called Media_Dashboard, will be made available to you automatically, but you have to enable Cloud Monitoring in your project before you will be able to access this dashboard.
Click Check my progress to verify the objective.
Once you initialize Cloud Monitoring, you can access the initial dashboard, called Media_Dashboard. In subsequent tasks you will add custom metrics to this basic dashboard. The initial dashboard configuration includes some charts that display stats about the latency of the video upload Cloud Function.
The monitoring service creates a custom metric, opencensus/my.videoservice.org/measure/input_queue_size
, that allows you to monitor the state of the Jooli Inc.'s video processing queue. This custom metric is created and written to by a Go application that runs on a Compute Instance called video-queue-monitor.
The video-queue-monitor Compute Instance has been deployed for you and uses a startup script to install and launch the input queue monitoring Go application. This application was tested fully in a development environment but the configuration in your Compute Instance has not been finalized. The Go application will not write custom metric data until the application is correctly configured by the startup script.
The Go application is installed in the /work/go
directory in the Compute Instance by the startup script.
input_queue_size
in the Metrics Explorer in Cloud Monitoring.Click Check my progress to verify the objective.
Examine the Cloud Operations logs and create a custom metric that tracks the total volume of uploaded media files to your Cloud Function. The video upload Cloud Function creates a Cloud Operations Logging event that includes metadata about the type of video file the video processing system handles.
You have been asked to configure a custom log based metric called
The Cloud Function is already processing this data, and if you search the Cloud Operations logs using the advanced filter mode you will find log entries that contain the string "file_format: 4K"
or "file_format: 8K"
in the textPayload
field whenever the video_processing
Cloud Function receives a request to process a high resolution video. You can use that filter to create your custom metric.
Click Check my progress to verify the objective.
You must now add two charts to the Media Dashboard:
Click Check my progress to verify the objective.
Click Check my progress to verify the objective.
startup_script
. custom.googleapis.com/opencensus/my.videoservice.org/measure/input_queue_size
associated with the gce_instance
resource type.textPayload=~"file_format\: ([4,8]K).*"
. That is a regular expression that matches all Cloud Operations events for the two high resolution video formats you are interested in. You can use the same regular expression and configure labels in the metric definition, which creates a separate time series for each of the two high resolution formats.Congratulations! In this lab, you demonstrated your ability to configure Cloud Monitoring and Cloud Operations to monitor and alert on the performance of a Cloud Function that processes video uploads. You first enabled Cloud Monitoring for your project and then configured a Compute Instance to generate custom metrics. You then created a custom metric using Cloud Operations logging events and added custom metrics to the Media Dashboard in Cloud Operations Monitoring. Finally, you created a Cloud Operations alert based on the rate of high resolution video file uploads.
...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 April 18, 2025
Lab Last Tested April 18, 2025
Copyright 2025 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.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one