datadog cli
Datadog CLI for searching logs, querying metrics, tracing requests, and managing dashboards. Use this when debugging production issues or working with Datadog observability.
Documentation & Preview
datadog Plugin
A Claude Code skill for debugging and triaging with Datadog logs, metrics, and dashboards.
What it does
This skill enables Claude to use the datadog CLI for:
- Log search - Query and filter logs with Datadog syntax
- Real-time tailing - Stream logs as they arrive
- Trace analysis - Follow distributed requests across services
- Pattern detection - Group similar log messages automatically
- Metrics query - Query timeseries metrics with PromQL-style syntax
- Dashboard management - List, create, update, and delete dashboards
Prerequisites
- Install the CLI from leonardocouy/datadog-cli
- Set environment variables:
export DD_API_KEY="your-api-key"
export DD_APP_KEY="your-app-key"Get keys from: https://app.datadoghq.com/organization-settings/api-keys
Installation
/plugin marketplace add leonardocouy/cc-datadog
/plugin install datadog@cc-datadogUsage
Once installed, Claude will automatically use datadog commands when you ask questions like:
- "Search for error logs in the last hour"
- "Tail logs from the payments service"
- "Trace this request ID across services"
- "Show me error patterns from today"
- "What dashboards do we have?"
- "Please explain this Datadog dashboard https://app.datadoghq.com/dashboard/xxx-xxx-xxx"
- "Create a new Datadog dashboard for the metrics cpu.usage, memory.used"
Commands Reference
| Command | Purpose | |---------|---------| | datadog logs search | Search and filter logs | | datadog logs tail | Stream logs in real-time | | datadog logs trace | Find logs for a trace ID | | datadog logs patterns | Group similar log messages | | datadog logs compare | Compare current vs previous period | | datadog logs context | Get logs around a timestamp | | datadog logs agg | Aggregate logs by facet | | datadog logs multi | Run multiple queries in parallel | | datadog metrics query | Query timeseries metrics | | datadog dashboards list | List dashboards | | datadog dashboards get | Get dashboard definition | | datadog dashboards create | Create a dashboard | | datadog dashboards update | Update a dashboard | | datadog dashboards delete | Delete a dashboard | | datadog errors | Quick error summary | | datadog services | List services with log activity |
See the datadog-cli repository for complete command documentation.
License
MIT