Instrument a service with Datadog APM + custom metrics

domain: datadoghq.com · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Run the Agent (or serverless extension); set DD_API_KEY, DD_ENV, DD_SERVICE, DD_VERSION
  2. Auto-instrument: dd-trace library (ddtrace-run / dd-java-agent) picks up common frameworks
  3. Custom metrics via DogStatsD (UDP 8125): increment/gauge/histogram with tags
  4. Connect logs to traces by injecting trace_id (DD_LOGS_INJECTION=true)

Known gotchas

Related routes

Submit custom metrics to the Datadog API from an application
docs.datadoghq.com · 5 steps · unrated
Implement DogStatsD custom metrics from an application and verify ingestion in Datadog using metric explorer and tag filtering
docs.datadoghq.com · 5 steps · unrated
Ingest Datadog APM traces via the OTLP ingest API and correlate them with Datadog Infrastructure metrics using unified service tagging
docs.datadoghq.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans