<< All versions
Skill v1.0.0
currentLLM-judged scan90/100eratio08/dotfiles/dd-apm
──Details
PublishedOctober 22, 2026 at 03:30 AM
Content Hashsha256:23328da183a348d6...
Git SHAa07f5e76b8bd
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 127 lines · 3.2 KB
version: "1.0.0" name: dd-apm description: APM - traces, services, dependencies, performance analysis. metadata: version: "1.0.1" author: datadog-labs repository: https://github.com/datadog-labs/agent-skills tags: datadog,apm,tracing,performance,distributed-tracing,dd-apm globs: "/ddtrace*,/datadog*.yaml,**/trace" alwaysApply: "false"
Datadog APM
Distributed tracing, service maps, and performance analysis.
Requirements
Datadog Labs Pup should be installed. See Setup Pup if not.
Command Execution Order (Token-Efficient)
For scoped commands, use this order:
- Check context first (prior outputs, conversation, saved values).
- If a required value is missing, run a discovery command first.
- If still ambiguous, ask the user to confirm.
- Then run the target command.
- Avoid speculative commands likely to fail.
Quick Start
bash
pup auth login# Confirm env tag with the user first (do not assume production/prod/prd).pup apm services list --env <env> --from 1h --to nowpup traces search --query "service:api-gateway" --from 1h
Services
List Services
bash
pup apm services list --env <env> --from 1h --to nowpup apm services stats --env <env> --from 1h --to now
Service Stats
bash
pup apm services stats --env <env> --from 1h --to now
Service Map
bash
# View dependenciespup apm flow-map --query "service:api-gateway&from=$(($(date +%s)-3600))000&to=$(date +%s)000" --env <env> --limit 10
Traces
Search Traces
bash
# By servicepup traces search --query "service:api-gateway" --from 1h# Errors onlypup traces search --query "service:api-gateway status:error" --from 1h# Slow traces (>1s)pup traces search --query "service:api-gateway @duration:>1000ms" --from 1h# With specific tagpup traces search --query "service:api-gateway @http.url:/api/users" --from 1h
Trace Detail
bash
# No direct get command for a single trace ID.# Use traces search with a narrow query and time window.pup traces search --query "trace_id:<trace_id>" --from 1h
Key Metrics
| Metric | What It Measures | |
|---|---|---|
trace.http.request.hits | Request count | |
trace.http.request.duration | Latency | |
trace.http.request.errors | Error count | |
trace.http.request.apdex | User satisfaction |
Service Level Objectives
Link APM to SLOs:
bash
pup slos create --file slo.json
Common Queries
| Goal | Query | |
|---|---|---|
| Slowest endpoints | avg:trace.http.request.duration{*} by {resource_name} | |
| Error rate | sum:trace.http.request.errors{*} / sum:trace.http.request.hits{*} | |
| Throughput | sum:trace.http.request.hits{*}.as_rate() |
Troubleshooting
| Problem | Fix | |
|---|---|---|
| No traces | Check ddtrace installed, DD_TRACE_ENABLED=true | |
| Missing service | Verify DD_SERVICE env var | |
| Traces not linked | Check trace headers propagated | |
| High cardinality | Don't tag with user_id/request_id |