# Datadog

> Monitor infrastructure and applications via Datadog API and CLI. Use when querying metrics, logs, or managing monitors.

- Skill: `fworks-tech/datadog` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fworks-tech/datadog`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fworks-tech/datadog/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: fworks-tech (https://skillmd.com/u/fworks-tech)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/fworks-tech/datadog

---


# Datadog

Use the Datadog API to monitor and query.

## API Base
```
https://api.datadoghq.com/api/v1/
https://api.datadoghq.com/api/v2/
```

## Common Operations

### Metrics
- Query metrics: `curl -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" "https://api.datadoghq.com/api/v1/query?from=<unix_start>&to=<unix_end>&query=<metric>"`

### Monitors
- List monitors: `curl -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" "https://api.datadoghq.com/api/v1/monitor"`
- Mute monitor: `curl -X POST -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" "https://api.datadoghq.com/api/v1/monitor/<id>/mute"`

### Logs
- Query logs: `curl -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" -H "Content-Type: application/json" -d '{"query":"service:myapp"}' "https://api.datadoghq.com/api/v2/logs/events/search"`

## Notes
- API key from https://app.datadoghq.com/organization-settings/api-keys
- EU site uses `api.datadoghq.eu` instead of `api.datadoghq.com`

