
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
Deploy a GKE Standard Cluster
/ 25
Deploy Datadog Operator
/ 25
Apply the manifest to cluster
/ 25
Scale the size of default node pool
/ 25
This lab was developed with our partner, Datadog. Your personal information may be shared with Datadog, the lab sponsor, if you have opted-in to receive product updates, announcements, and offers in your Account Profile.
Datadog is an observability service for cloud-scale applications, providing monitoring of servers, databases, tools, and services, through a SaaS-based data analytics platform. Google Kubernetes Engine (GKE), a service on the Google Cloud Platform (GCP), is a hosted platform for running and orchestrating containerized applications. Due to Kubernetes’s compartmentalized nature and dynamic scheduling, it can be difficult to diagnose points of failure or track down other issues in your infrastructure. Datadog Agent helps to collect metrics from Docker, Kubernetes, and your containerized applicationss. In this lab you will run the Datadog Agent in a Kubernetes cluster as a DaemonSet in order to start collecting your cluster and applications metrics, traces, and logs. You can deploy a Datadog Agent with a Helm chart or directly with a DaemonSet object YAML definition.
In this lab, you will be explaining and using those options in a real cluster, checking in real time the features they enable.
In this lab, you will learn about using the Helm chart used to install the Datadog Agent. You will learn how to:
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 Qwiklabs 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:
Note: If you already have your own personal Google Cloud account or project, do not use it for this lab.
Note: If you are using a Pixelbook, open an Incognito window to run this lab.
Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is a panel populated with the temporary credentials that you must use for this lab.
Copy the username, and then click Open Google Console. The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Open the tabs in separate windows, side-by-side.
In the Sign in page, paste the username that you copied from the Connection Details panel. Then copy and paste the password.
Important: You must use the credentials from the Connection Details panel. Do not use your Qwiklabs credentials. If you have your own Google Cloud account, do not use it for this lab (avoids incurring charges).
Click through the subsequent pages:
After a few moments, the Cloud Console opens in this tab.
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
In the Cloud Console, in the top right toolbar, click the Activate Cloud Shell button.
Click Continue.
It takes a few moments to provision and connect to the environment. When you are connected, you are already authenticated, and the project is set to your PROJECT_ID. For example:
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
You can list the active account name with this command:
(Output)
(Example output)
You can list the project ID with this command:
(Output)
(Example output)
In Cloud Shell, run the following commands to create a GKE Standard Kubernetes cluster
Click Check my progress to verify the objective.
After a few minutes this will spin up a new Kubernetes cluster with the name datadog
. In the meantime you can move on with the Datadog account creation step.
If you already have a trial account set up, you can use that. It is recommended that you do not use your production Datadog account to avoid cluttering the environment with test and training assets.
Navigate to https://us5.datadoghq.com/signup and enter your name, email, company, and a password.
On the next page, you will see a list of available Agent installations. Click Kubernetes.
Click Select API Key, then Create New.
Enter a name and click Save.
Select the row with the new key, and click Use API Key.
Copy the Datadog API key.
<YOUR_DATADOG_API_KEY>
with the Datadog API key you copied, and then run the command:Logs
and clicking on Getting Started
.In this section, you will deploy the Datadog Operator.
Click Check my progress to verify the objective.
You should get an output similar to this:
datadog-secret
. This is a secret that was automatically created that contains your API key.Check that the secret actually contains your API key getting the value and base64 decoding it:
token
secrets are the ones used by the service accounts to communicate with the API server. Check the workloads that have been deployed:(Output)
Click Check my progress to verify the objective.
Go to the Kubernetes Explorer. Infrastructure > Kubernetes Explorer
.
You can observe that some of the pods are stuck in pending.
The exact pods pending might be differently named, but in any case--you don't enough CPU or Memory to spin up all the pods.
Click Check my progress to verify the objective.
Go to Logs.
Your Apps have been exporting logs that the Datadog agent has been picking up.
You can filter these logs based on service, source, and status. You should see quite a few logs since you have loadgenerator service running.
In this lab, you got hands-on experience using the Datadog Helm Chart and installed the Datadog Agent.
Be sure to check out the following labs for more practice with Datadog:
...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 May 8, 2024
Lab Last Tested May 8, 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.
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