Datadog Query Recipes
Use this skill for Langfuse production telemetry research where the main work is
finding the right Datadog data path. Keep findings evidence-based and include
the exact Datadog links or query shapes that support the answer.
Required Scope
Unless the user explicitly narrows the scope, cover every production
environment:
prod-us
prod-eu
prod-hipaa
prod-jp
Query both Datadog sites when needed. Default to the EU site for prod-eu and
the US site for the other prod environments, but verify with a small count or
facet query before concluding an environment has no data.
Before querying live Datadog, load the relevant Datadog MCP guidance for the
data domain you need: traces, logs, metrics, and visualizations.
Workflow
- Identify the entity and signal: tenant ID, org ID, project ID, route, queue,
service, error class, or metric.
- Read only the relevant reference:
- Prod environment/site routing:
references/environments.md
- Public API tenant or legacy endpoint usage:
references/public-api-tenant-usage.md
- Queue inventory, queue consumers, and queue metrics:
references/queue-consumers.md
- Scheduled-export freshness lag (blob / PostHog / Mixpanel):
references/export-freshness-lag.md
- Start with aggregate queries, grouped by environment, service, route,
queue, project, org, status, or error facets as appropriate.
- Fetch raw spans, logs, or traces only after aggregation identifies the
cluster or sample you need.
- For tenant-specific HTTP usage, prefer trace correlation over single-span
queries when tenant tags and route tags live on different spans.
- Report the windows, environments, sites, query links, and any sampling or
missing-data caveats.
When To Use Other Skills
- Use
debug-issue-with-datadog when a
Linear issue, GitHub issue, incident report, or monitor needs root-cause
analysis and patch recommendations.
- Use
weekly-production-review when
the user asks for a weekly engineering overview of production bugs, pages,
and incidents.
- Use
incident-alert-tickets when the
research is anchored to a named production alert or monitor: look up
documented causes before measuring, and record new ones only after human
approval.
- Use
linear-bug-triage only after a human
approves sharing measured findings in Linear.
Output Expectations
Summarize what was checked, including:
- Datadog site and
env values covered.
- Time windows.
- Core filters or metrics used.
- Count, rate, latency, queue depth, trace sample, or "No measurements found".
- Datadog links or trace IDs that let the human rerun the query.
1---2name: datadog-query-recipes3description: Research Langfuse production telemetry with reusable Datadog queries. Use for tenant or project activity, API usage, queue behavior, spans, logs, metrics, or ad hoc measurements across production regions; pair with debug-issue-with-datadog for root-cause analysis.4---5
6# Datadog Query Recipes
7
8Use this skill for Langfuse production telemetry research where the main work is
9finding the right Datadog data path. Keep findings evidence-based and include
10the exact Datadog links or query shapes that support the answer.
11
12## Required Scope
13
14Unless the user explicitly narrows the scope, cover every production
15environment:
16
17- `prod-us`
18- `prod-eu`
19- `prod-hipaa`
20- `prod-jp`
21
22Query both Datadog sites when needed. Default to the EU site for `prod-eu` and
23the US site for the other prod environments, but verify with a small count or
24facet query before concluding an environment has no data.
25
26Before querying live Datadog, load the relevant Datadog MCP guidance for the
27data domain you need: traces, logs, metrics, and visualizations.
28
29## Workflow
30
311. Identify the entity and signal: tenant ID, org ID, project ID, route, queue,
32 service, error class, or metric.
332. Read only the relevant reference:
34 - Prod environment/site routing:
35 [`references/environments.md`](references/environments.md)
36 - Public API tenant or legacy endpoint usage:
37 [`references/public-api-tenant-usage.md`](references/public-api-tenant-usage.md)
38 - Queue inventory, queue consumers, and queue metrics:
39 [`references/queue-consumers.md`](references/queue-consumers.md)
40 - Scheduled-export freshness lag (blob / PostHog / Mixpanel):
41 [`references/export-freshness-lag.md`](references/export-freshness-lag.md)
423. Start with aggregate queries, grouped by environment, service, route,
43 queue, project, org, status, or error facets as appropriate.
444. Fetch raw spans, logs, or traces only after aggregation identifies the
45 cluster or sample you need.
465. For tenant-specific HTTP usage, prefer trace correlation over single-span
47 queries when tenant tags and route tags live on different spans.
486. Report the windows, environments, sites, query links, and any sampling or
49 missing-data caveats.
50
51## When To Use Other Skills
52
53- Use [`debug-issue-with-datadog`](../debug-issue-with-datadog/SKILL.md) when a
54 Linear issue, GitHub issue, incident report, or monitor needs root-cause
55 analysis and patch recommendations.
56- Use [`weekly-production-review`](../weekly-production-review/SKILL.md) when
57 the user asks for a weekly engineering overview of production bugs, pages,
58 and incidents.
59- Use [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md) when the
60 research is anchored to a named production alert or monitor: look up
61 documented causes before measuring, and record new ones only after human
62 approval.
63- Use [`linear-bug-triage`](../linear-bug-triage/SKILL.md) only after a human
64 approves sharing measured findings in Linear.
65
66## Output Expectations
67
68Summarize what was checked, including:
69
70- Datadog site and `env` values covered.
71- Time windows.
72- Core filters or metrics used.
73- Count, rate, latency, queue depth, trace sample, or "No measurements found".
74- Datadog links or trace IDs that let the human rerun the query.