# investigating-datadog > Queries Datadog for debugging and investigation. Search logs, query metrics, check monitors, list hosts, view events, and search APM traces. Use when the user asks about Datadog data, wants to debug issues, check alerts, or investigate infrastructure. - Author: Michael Sakaluk - Repository: mdsakalu/dotfiles - Version: 20260109143054 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/mdsakalu/dotfiles - Web: https://mule.run/skillshub/@@mdsakalu/dotfiles~investigating-datadog:20260109143054 --- --- name: investigating-datadog description: Queries Datadog for debugging and investigation. Search logs, query metrics, check monitors, list hosts, view events, and search APM traces. Use when the user asks about Datadog data, wants to debug issues, check alerts, or investigate infrastructure. allowed-tools: Bash, Read, Task, WebFetch license: MIT metadata: version: 2.0.0 updated: 2026-01-08 spec-version: agentskills.io/2026 compatibility: | Requires: uv (for dependency management), DD_API_KEY and DD_APP_KEY env vars. Dependencies managed via pyproject.toml (datadog-api-client). Claude Code only - requires Bash execution and Task tool for subagents. --- # Investigating Datadog ## Before You Start **Check authentication:** ```bash echo "API: ${DD_API_KEY:+set} APP: ${DD_APP_KEY:+set}" ``` If not set, see [SETUP.md](SETUP.md). ## When to Use a Subagent **Use a subagent for investigations** - when the user wants to understand an error pattern, debug an issue, or answer "when did this start / is it still happening / how often": ``` Use the Task tool with subagent_type="general-purpose" and this prompt: "Investigate this Datadog issue and return a concise summary: Query: Service: Time range: Run this command from ~/.claude/skills/investigating-datadog/scripts: uv run dd.py investigate "" --from