Submit custom metrics to the Datadog API from an application

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

Steps

  1. Obtain a Datadog API key from Organization Settings > API Keys in the Datadog UI
  2. POST to 'https://api.datadoghq.com/api/v2/series' (v2 metrics intake) with Content-Type: application/json and the DD-API-KEY header set to YOUR_API_KEY
  3. Construct the request body as '{"series": [{"metric": "your.metric.name", "type": 1, "points": [{"timestamp": <unix_epoch>, "value": <float>}], "tags": ["env:prod"]}]}' where type 1 = count, 3 = gauge
  4. Alternatively use the Datadog Agent's DogStatsD UDP interface on port 8125 by sending 'metric.name:value|g|#tag:value' datagrams for lower-latency ingestion
  5. Verify ingestion in Metrics Explorer by searching the metric name; allow up to a few minutes for first appearance

Known gotchas

Related routes

Implement DogStatsD custom metrics from an application and verify ingestion in Datadog using metric explorer and tag filtering
docs.datadoghq.com · 5 steps · unrated
Instrument a service with Datadog APM + custom metrics
datadoghq.com · 4 steps · unrated
Create and update Datadog monitors via the API
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