RousselTMLEARNING

TP · Datadog: from discovery to expertise

Lab: Monitor a Kubernetes cluster with the Datadog Operator

What you will learn in this TP
  • Deploy the Operator and the agent
  • Monitor an application with Autodiscovery
  • Troubleshoot with agent status

Introduction #

What you will learn in this section
  • Deploy the Operator and the agent
  • Monitor an application with Autodiscovery
  • Troubleshoot with agent status

Context. The team is moving its applications to Kubernetes. You must get the same visibility as on VMs, without manual configuration per pod.

Prerequisites: Datadog account (the free trial is enough) and its API key, Docker, kind, kubectl, helm  ·  Estimated time: 45 min

A cluster monitored declaratively.

Hands-on #

Guided steps, with their solution.

  1. 1. Create the cluster and install the Operator

    Why? The Operator manages the agent from a single declarative resource.

    Create a kind cluster, install the Operator and the secret holding the API key.
  2. 2. Deploy the agent

    Why? The DatadogAgent resource describes everything: site, key, features.

    Write and apply datadog-agent.yaml. How many agent pods do you get?
  3. 3. Deploy an application

    Why? Autodiscovery annotations configure the check as soon as the pod starts.

    Deploy Redis with the redisdb check annotations and the unified tagging labels.
  4. 4. Check on the agent side

    Why? agent status and configcheck tell whether the configuration was found and whether the check runs.

    Check that the Redis check is discovered and running.
  5. 5. Check in Datadog

    Why? Unified tagging links metrics, logs and container.

    In Datadog, filter on service:cache: find the redis.* metrics, the container logs and the pod in the Kubernetes explorer.

Difficulty level : ●●●○○ (3/5)

My progress

  • ⏱ Estimated time : ≈ 45 min

Sign in to track your progress and take notes. Sign in

💬 Recent discussions about this course

Ask a question about this lesson →See all discussions about this course

Recommended Articles

Datadog on Kubernetes: Operator, Cluster Agent and Autodiscovery

Monitor Kubernetes with Datadog: the Datadog Operator and the DatadogAgent resource, Cluster Agen...

Installing the Datadog agent and configuring integrations

Install the Datadog agent on Linux, Docker and Kubernetes (Datadog Operator), understand datadog....

Metrics and tags in Datadog: unified tagging, DogStatsD and cardinality

Use Datadog metrics: unified tagging (env, service, version), queries and aggregations, custom me...

Datadog: the SaaS observability platform at a glance

What Datadog is, its products (infrastructure, logs, APM, RUM, synthetics, security), its concept...

Monitors, SLOs, dashboards and Datadog as code

Create effective monitors (metrics, logs, APM, composites, anomalies), SLOs, dashboards, and mana...

Datadog platform architecture: sites, organizations, keys and data model

Understand Datadog's architecture: data sources (agent, cloud integrations, SDKs, OpenTelemetry),...

Dynatrace Operator on Kubernetes: DynaKube, monitoring modes and troubleshooting

Monitor Kubernetes with the Dynatrace Operator: Helm installation, the DynaKube resource, cloudNa...

OpenTelemetry on Kubernetes: Operator, auto-instrumentation and Collector

Deploy OpenTelemetry on Kubernetes: Collector deployment modes (DaemonSet, Deployment, sidecar, S...

Advanced infrastructure with Datadog: network, cloud, containers and databases

Monitor infrastructure beyond hosts: Network Performance Monitoring, AWS, Azure and GCP integrati...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!