1
Foundations
What Datadog is, and getting your first data flowing.
↑ All modules
1
What is Datadog?
Datadog is a cloud observability and monitoring platform. It collects telemetry from every layer of your stack — servers, containers, databases, cloud services, and application code — and turns it into dashboards, alerts, and searchable data you can use to understand and debug production systems.
Everything sits on three pillars of observability:
- Metrics — numeric time-series like CPU, request rate, latency, and error count.
- Traces — the path of a single request as it moves through your services (APM).
- Logs — the text events your apps and infrastructure emit, collected and indexed for search.
On top of those pillars, Datadog layers products for infrastructure, security, digital experience, and — the focus of this course — AI. This whole course is organized into those product modules so you can learn (or jump to) exactly what you need.
TakeawayDatadog unifies metrics, traces, and logs into one platform, then adds products (APM, Logs, Security, AI) on top. Learn the pillars first, then the products.
2
Install the Agent & your first data
Data gets into Datadog through the Datadog Agent — a lightweight process you run on your hosts (or as a container) that gathers metrics, traces, and logs and ships them to Datadog. Sign up for the free 14-day trial, pick your site (e.g. datadoghq.com for US1, datadoghq.eu for EU), grab your API key, and install:
bash
# One-line Datadog Agent install (Linux)
DD_API_KEY=<your_api_key> DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"
Within a minute or two your host appears under Infrastructure → Host Map. Run the Agent as a Kubernetes DaemonSet and it collects from every node automatically.
Your Datadog site matters. The site (US1, US3, US5, EU, AP1, …) sets your data region and every API/endpoint URL — including the AI features later. Note yours now; you'll reuse it throughout.
TakeawayThe Agent is how everything gets in. Install it, confirm your host reports, and note your Datadog site.
2
Metrics & Dashboards
Visualize numbers, alert on them, and set reliability targets.
↑ All modules
3
Metrics & the query editor
A metric is a time-series: a name (like system.cpu.user), a value, a timestamp, and tags (key:value labels such as env:prod or service:checkout). Tags are the superpower — they let you slice one metric by host, region, or service on the fly.
In the metric query editor you pick a metric, filter by tags (from), and aggregate (avg, sum, p95) — optionally grouping by a tag. Functions let you compute rates, rolling averages, and arithmetic across metrics.
TakeawayMetrics = tagged time-series. Master tagging and aggregation and every dashboard, monitor, and AI feature downstream gets sharper.
4
Dashboards & notebooks
A dashboard is a canvas of widgets (timeseries, top lists, heatmaps, query values) you build from your metrics, traces, and logs. Use template variables (e.g. $env, $service) to make one dashboard reusable across services and environments.
Notebooks are the narrative cousin of dashboards — mixed text and graphs, perfect for incident post-mortems, runbooks, and sharing an investigation as a story.
TakeawayDashboards for live monitoring, notebooks for narrative/analysis. Template variables keep dashboards DRY.
5
Monitors & alerting
A monitor is an alert: pick a metric, set a condition and threshold, and route notifications to Slack, email, PagerDuty, or Datadog On-Call. Monitor types include threshold, change, composite (combine monitors), and the ML types in the next lesson.
Good alerts are actionable: use tags to scope them, add clear messages with @-mentions and runbook links, and avoid alert fatigue by alerting on symptoms users feel (latency, errors) rather than every raw metric.
TakeawayMonitors turn metrics into action. Scope with tags, write actionable messages, and alert on user-facing symptoms.
6
AI/ML monitor types
Some thresholds can't be hard-coded — traffic that's normal at noon is alarming at 3am. Datadog's ML-based monitors handle this:
- Anomaly — learns a metric's seasonal pattern and alerts when it deviates from the expected band.
- Forecast — projects a metric forward and alerts before it will cross a threshold (e.g. "disk full in 3 days").
- Outlier — alerts when one member of a group (one host, one pod) behaves unlike its peers.
This is learner-facing AI you configure yourself — distinct from Watchdog, which runs automatically with no setup. See it in the AI module:
→ Watchdog & Toto.
TakeawayReach for anomaly/forecast/outlier monitors when a static threshold can't capture "normal." Forecast monitors are the ones that page you before the outage.
7
SLOs — Service Level Objectives
An SLO sets a reliability target (e.g. "99.9% of checkout requests succeed over 30 days"). Datadog tracks the target against a Service Level Indicator (a metric or monitor) and shows your remaining error budget — how much unreliability you can still spend before you breach.
SLOs shift the conversation from "is this graph red?" to "are we keeping our promise to users?" — and the error budget tells you when to slow down and stabilize versus ship features.
TakeawaySLOs + error budgets turn reliability into a measurable target teams can plan around, not a gut feeling.
3
APM & Tracing
Follow a request across services and find the slow code.
↑ All modules
8
Tracing & the service map
APM (Application Performance Monitoring) captures a trace for each request — the full path as it hops across your services. Each step is a span with its own timing. You instrument your app with a Datadog tracing library (Python, Java, Node, Go, …), often with zero code changes via auto-instrumentation.
The Service Map draws your architecture live from traces — every service as a node, dependencies as edges, colored by health. It's the fastest way to see what talks to what and where latency or errors originate.
See also: traces and spans are also the core model for
LLM Observability — the same idea applied to AI apps.
TakeawayAPM traces a request across services; the Service Map turns those traces into a live architecture diagram.
9
Flame graphs, error tracking & Watchdog RCA
Open a trace and you get a flame graph — a waterfall of spans showing exactly where time went (a slow DB query, an N+1 loop, a downstream call). Error Tracking groups related errors into issues so one spike of 10,000 errors becomes a single, triageable problem with a first-seen/last-seen timeline.
Watchdog RCA (root cause analysis) runs on your APM data automatically, correlating anomalies across services to suggest a likely cause — a preview of the AI module.
TakeawayFlame graphs show where time goes; Error Tracking dedupes noise into issues; Watchdog RCA points at likely causes automatically.
10
Continuous Profiler
APM tells you which service is slow; the Continuous Profiler tells you which line of code is burning CPU, allocating memory, or holding locks — in production, continuously, at low overhead. You can compare profiles across deploys to catch a regression the moment it ships.
TakeawayProfiling closes the last mile: from "the checkout service is slow" down to the exact method eating CPU.
4
Log Management
Collect, structure, and search everything your systems say.
↑ All modules
11
Log collection & pipelines
The Agent (or a cloud integration) ships logs to Datadog, where pipelines process them: parse raw text into structured fields (the Grok parser), remap attributes, and enrich. Structured logs become facets you can filter and aggregate on — turning a wall of text into queryable data.
To control cost, indexes and filters decide which logs are retained for search, while everything can still be archived cheaply to cloud storage and rehydrated on demand.
TakeawayPipelines turn raw log lines into structured, faceted data; indexes/filters keep retention (and cost) under control.
12
Log analytics & the explorer
The Log Explorer lets you search across all logs, filter by facet, and switch from raw events to analytics — group by fields, count, and graph (e.g. "5xx responses per service over time"). Because logs share tags with metrics and traces, you can pivot from a spiking metric straight to the exact logs behind it.
TakeawayThe Log Explorer is search + analytics in one; shared tags let you pivot metric → trace → log seamlessly.
5
Infrastructure & Containers
See your hosts, clusters, cloud, and what they cost.
↑ All modules
13
Infrastructure monitoring & integrations
The Host Map visualizes every host as a tile, colored and grouped by any tag — a fast read on fleet health. Datadog's 900+ integrations (PostgreSQL, NGINX, Redis, Kafka, AWS, GCP, Azure…) are usually a small YAML config that tells the Agent what to collect, instantly adding curated metrics and an out-of-the-box dashboard.
TakeawayHost Map = fleet health at a glance; integrations = plug-in metrics + dashboards for the tech you already run.
14
Kubernetes & containers
Run the Agent as a DaemonSet and Datadog auto-discovers pods and services, collecting container metrics, kube-state data, and logs. The Container Map and Live Containers views show utilization down to the pod, while Autodiscovery attaches the right integration config to containers as they start and stop.
TakeawayA single DaemonSet + Autodiscovery gives you full, self-updating visibility into a dynamic Kubernetes fleet.
15
Cloud Cost Management
Cloud Cost Management pulls your AWS/GCP/Azure billing into Datadog and puts spend next to utilization — so you can ask "what did this service cost, and was it even used?" in one place. Tag-based breakdowns make it easy to attribute cost to teams and find waste.
TakeawayPutting cost beside usage turns cost-cutting from spreadsheet guesswork into data-backed decisions.
6
AI & Bits AI 🌟
The reason Datadog feels different in 2026 — AI that detects, investigates, and acts.
↑ All modules
16
Watchdog — Datadog's AI engine (& Toto)
Watchdog is Datadog's always-on, ML-driven detection engine. No configuration: it continuously learns normal behavior across your metrics, traces, and logs, then surfaces the signals that matter. It does automatic anomaly detection, root cause analysis, impact assessment (how many users are affected), and faulty-deployment detection.
Where a monitor answers a question you knew to ask, Watchdog catches the "unknown unknowns" you never wrote a monitor for.
Under the hood: Toto. Datadog trained Toto, a state-of-the-art open time-series foundation model (it tops the "BOOM" benchmark), which sharpens the forecasting and anomaly detection powering Watchdog and the ML monitors. Datadog builds real AI, not just LLM wrappers.
TakeawayWatchdog = zero-config anomaly detection + RCA + impact + bad-deploy detection, powered by Datadog's own Toto model.
17
Meet Bits AI — your agentic teammate
Bits AI is Datadog's AI teammate. It's agentic: chat with it in real time, or delegate a whole task — investigate an alert, remediate code, triage a security signal — and let it run autonomously and report back. It lives inside the Datadog app and reasons over your observability data.
InvestigateBits Investigation (AI SRE)
Automatically investigates alerts, forming and testing hypotheses to find a root cause.
ChatBits Chat
Natural-language exploration of your observability data — ask instead of query.
CodeBits AI Dev Agent
Generates code fixes and proposes pull requests for issues Bits surfaces.
SecurityBits Security Analyst
Triages security threat signals and helps you review and respond.
DataBits Data Analysis
Query business and observability data conversationally, in plain language.
DetectBits Detection
Autonomously identifies and monitors service degradations across the stack.
Bits runs on an AI Credits billing model, and is available in the app, on mobile, and via Slack. (Note: not available on Datadog's US government sites.)
Two modes. Collaborate — chat and refine in real time. Delegate — hand off a whole task and review what it did. Start collaborative, delegate more as trust builds.
TakeawayBits AI is a family of specialized agents (investigate, chat, code, security, data, detect) you either collaborate with or delegate to; metered in AI Credits.
18
Bits AI SRE: autonomous investigation
The flagship capability. Bits Investigation (Bits AI SRE) activates the moment an alert fires and starts root-cause analysis without a prompt — often finding a likely cause, and even proposing a fix, before an engineer finishes reading their page.
How it investigates — parallel hypotheses
- Generates multiple hypotheses about the cause, all at once.
- Systematically tests each by querying your logs, traces, metrics, and infra.
- Marks each validated, invalidated, or inconclusive, with the evidence.
- Follows the promising leads and drops the dead ends — narrowing to a root cause.
Findings post to Slack, mobile, and the app, and integrate with On-Call & Case Management. You can chat to refine, and your corrections make future investigations better.
TakeawayBits AI SRE runs evidence-based investigations on every alert — parallel hypotheses, classified findings, posted where your team works, improving from feedback.
19
Bits Chat & Data Analysis
Not every question is an incident. Bits Chat lets you explore observability data in plain language — "which services had the highest error rate in the last hour?" or "show p99 latency for checkout today vs. yesterday" — no query syntax required.
Bits Data Analysis extends this to business data you've brought into Datadog, so you can interrogate it conversationally instead of writing SQL or building a report.
TakeawayBits Chat is the fastest on-ramp to Bits AI: ask your data questions in English; Data Analysis does the same for business data.
20
Datadog MCP Server 🌟
This is the piece that connects Datadog to your AI tools. The Datadog MCP Server is a bridge between your observability data and any AI agent that speaks the Model Context Protocol (MCP) — Claude Code, Cursor, OpenAI Codex, and more. It exposes structured tools for APM, logs, metrics, traces, monitors, dashboards, and security signals, so your coding agent can pull real telemetry while it debugs or writes code.
Connect it to Claude Code
The quickest path is the official plugin; you can also configure the remote server manually.
claude code
# Option A — official plugin
/plugin install datadog@claude-plugins-official
/ddsetup # pick your Datadog site + OAuth login
/ddtoolsets # enable APM / Logs / Metrics tool groups
~/.claude.json
// Option B — manual remote MCP server (endpoint varies by site)
{
"mcpServers": {
"datadog": {
"type": "http",
"url": "<YOUR_MCP_SERVER_ENDPOINT>"
}
}
}
You'll need mcp_read (or mcp_write) permission plus access to the resources you query. Teams use it to build automated code-change proposals, group and analyze debugging logs, and pull code-in-context-with-telemetry to speed up incident investigation. Usage has generous rate limits and is tracked in the Audit Trail.
Why this is the killer AI feature for developers. It flips the model: instead of you going to Datadog, your AI assistant brings Datadog to your editor. "Why is checkout slow?" gets answered with real production traces, right where you write the fix.
TakeawayThe MCP Server exposes Datadog telemetry to AI coding agents over MCP. Install the plugin, authenticate, enable toolsets — now Claude Code can query your prod data while it codes.
21
AI Agent Monitoring
Autonomous AI agents fail in ways a single API call never does — infinite tool-call loops, runaway cost, a wrong decision three steps deep. AI Agent Monitoring is observability built for that: it visualizes the agent's execution graph, every tool call and decision as a span, with latency, cost, and errors at each step.
It answers the questions unique to agents: Did it pick the right tool? Is it stuck in a loop? Where did the cost blow up? Which decision led it wrong?
See also: agent traces are part of
LLM Observability — the next module goes hands-on.
TakeawayAI Agent Monitoring traces the agent's decision graph — tool calls, loops, cost, and where a multi-step agent went wrong.
22
Bits AI Dev Agent
The Bits AI Dev Agent closes the loop from problem to fix. When Datadog surfaces an issue (a bug, a Watchdog anomaly, a flaky test), the Dev Agent can generate a code fix and propose a pull request — turning an alert into a reviewable change instead of a ticket.
It's part of a family of domain-expert Bits agents (incident response, product development, security) built on shared tasks: Bits AI SRE finds the root cause, the Dev Agent drafts the code change, a human reviews and merges.
TakeawayBits AI SRE diagnoses; the Dev Agent proposes the PR. Together they take you from "alert fired" to "fix in review" with a human in the loop.
7
LLM Observability 🌟
Now monitor the AI apps and agents you build.
↑ All modules
23
LLM Observability explained
So far the AI has been Datadog watching your systems. LLM Observability flips it: it's how you monitor the AI applications you build — chatbots, RAG pipelines, and agents. It helps you debug root causes, measure performance and cost, and evaluate quality, privacy, and safety.
The core model: traces and spans
Every request produces a trace — the request's full journey — which can be a single LLM call, a predetermined workflow (LLM calls + tools + preprocessing), or an agent-executed workflow. Inside are spans: individual steps or agent decisions, each carrying inputs, outputs, latency, errors, and privacy metadata.
It monitors performance & cost (tokens, latency, spend), quality via topic clustering ("Patterns"), and security & privacy (auto-masking sensitive data, detecting prompt injection).
See also: it's the same trace/span idea as
APM tracing — applied to LLM calls instead of HTTP requests.
TakeawayLLM Observability = APM for AI apps. Traces & spans capture every LLM call, tool use, and agent decision so you can debug behavior and watch cost, quality, and safety.
24
Hands-on: instrument a Python AI app
Datadog's Python SDK ships inside ddtrace and auto-instruments OpenAI, LangChain, Anthropic, and Bedrock — capturing latency, errors, and tokens without code changes.
bash
pip install ddtrace # Python 3.7+
# Run your app with LLM Observability enabled
DD_SITE=datadoghq.com DD_API_KEY=<your_key> \
DD_LLMOBS_ENABLED=1 DD_LLMOBS_ML_APP=support-bot \
DD_LLMOBS_AGENTLESS_ENABLED=1 \
ddtrace-run python app.py
Auto-instrumentation captures raw calls; to model your app's workflow, use the decorators @workflow, @task, and @llm with LLMObs.annotate():
python
from ddtrace.llmobs import LLMObs
from ddtrace.llmobs.decorators import workflow, task, llm
@workflow
def process_request(question):
clean = sanitize_input(question)
return call_model(clean)
@task
def sanitize_input(text):
return text.strip()
@llm(model_name="gpt-4", model_provider="openai")
def call_model(prompt):
answer = "AI is..." # your real model call
LLMObs.annotate(
input_data=[{"role": "user", "content": prompt}],
output_data=[{"role": "assistant", "content": answer}],
metrics={"input_tokens": 12, "output_tokens": 24},
)
return answer
Open LLM Observability and you'll see the trace: the process_request workflow, the sanitize_input task, and the call_model span with its tokens and latency.
TakeawayInstall ddtrace, set the DD_LLMOBS_* env vars, run with ddtrace-run. Decorators (@workflow/@task/@llm) model your agent's real shape.
25
Evaluations, quality & safety
Traces tell you what happened; evaluations tell you whether it was any good. Datadog clusters user inquiries into topics ("Patterns") so you can see what people actually ask, spot coverage gaps, and track whether answer quality is improving or drifting.
Safety is built in: it automatically masks sensitive data so PII doesn't leak into traces, flags prompt-injection attempts, and its Agent Observability Insights surface unexpected behavior changes (a quality regression, a cost spike, a new failure mode).
Close the loop. Evaluations become signals — a drop in quality or a spike in injection attempts can trigger a monitor, and the same
Watchdog + Bits AI machinery now watches your
AI product too.
TakeawayEvaluations judge output quality; Patterns reveal gaps; built-in guards mask PII and catch prompt injection — observability for quality and safety, not just latency.