arrow_back

Monitor Environments with Google Cloud Managed Service for Prometheus: Challenge Lab

Accédez à plus de 700 ateliers et cours

Monitor Environments with Google Cloud Managed Service for Prometheus: Challenge Lab

Atelier 1 heure 30 minutes universal_currency_alt 5 crédits show_chart Intermédiaire
info Cet atelier peut intégrer des outils d'IA pour vous accompagner dans votre apprentissage.
Accédez à plus de 700 ateliers et cours

GSP364

Google Cloud self-paced labs logo

Introduction

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 Environments with Google Cloud managed Service for Prometheus course. Are you ready for the challenge?

Lab Objectives

In this lab, you will learn how to:

  • Deploy the Managed Service for Prometheus
  • Create a self managed data collection for scraping metrics
  • Deploy an application to query metrics

Task 1. Deploy a GKE cluster in

Task 2. Deploy a managed collection

Note: You will need to utilize a flag when issuing the command to create the GKE cluster in order to enable the Managed Service for Prometheus. Note: You should use the setup and operator manifest files to complete this challenge. For more information, refer to GoogleCloudPlatform/prometheus-engine.

Task 3. Deploy an example application

Note: Use the following manifest: example-app.yaml Check if prometheus has been deployed

Task 4. Filter exported metrics

  1. Add the following to operator config to filter metrics
collection: filter: matchOneOf: - '{job="prom-example"}' - '{__name__=~"job:.+"}'
  1. Create a config.yaml file
vi op-config.yaml
  1. Copy the contents of operatorconfig inside the config.yaml file

  2. Upload the config file you created to verify.

export PROJECT=$(gcloud config get-value project) gsutil mb -p $PROJECT gs://$PROJECT gsutil cp op-config.yaml gs://$PROJECT gsutil -m acl set -R -a public-read gs://$PROJECT Check if metrics filter has been applied

Congratulations

In this lab you have deployed Prometheus and a example application. Then you have applied a filter to the exported metrics.

Monitor Environments with Google Cloud Managed Service for Prometheus Skill Badge

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: April 18, 2024

Lab Last Tested: October 13, 2023

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.

Avant de commencer

  1. Les ateliers créent un projet Google Cloud et des ressources pour une durée déterminée.
  2. Les ateliers doivent être effectués dans le délai imparti et ne peuvent pas être mis en pause. Si vous quittez l'atelier, vous devrez le recommencer depuis le début.
  3. En haut à gauche de l'écran, cliquez sur Démarrer l'atelier pour commencer.

Utilisez la navigation privée

  1. Copiez le nom d'utilisateur et le mot de passe fournis pour l'atelier
  2. Cliquez sur Ouvrir la console en navigation privée

Connectez-vous à la console

  1. Connectez-vous à l'aide des identifiants qui vous ont été attribués pour l'atelier. L'utilisation d'autres identifiants peut entraîner des erreurs ou des frais.
  2. Acceptez les conditions d'utilisation et ignorez la page concernant les ressources de récupération des données.
  3. Ne cliquez pas sur Terminer l'atelier, à moins que vous n'ayez terminé l'atelier ou que vous ne vouliez le recommencer, car cela effacera votre travail et supprimera le projet.

Ce contenu n'est pas disponible pour le moment

Nous vous préviendrons par e-mail lorsqu'il sera disponible

Parfait !

Nous vous contacterons par e-mail s'il devient disponible

Un atelier à la fois

Confirmez pour mettre fin à tous les ateliers existants et démarrer celui-ci

Utilisez la navigation privée pour effectuer l'atelier

Ouvrez une fenêtre de navigateur en mode navigation privée pour effectuer cet atelier. Vous éviterez ainsi les conflits entre votre compte personnel et le compte temporaire de participant, qui pourraient entraîner des frais supplémentaires facturés sur votre compte personnel.