datadog-api
Skill4 starsChanged 6 months agoMITView on GitHub
Execute Datadog API requests to fetch live objects, metrics, or monitor statuses using cURL and API keys. You MUST load this skill when interacting with the Datadog API.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- anthropics/claude-tag-pluginstheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- anthropics/claude-tag-plugins★ 60same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When querying Datadog metrics, logs, or traces directly from the command line in an automated script.
- Distinctive: line 16
When you need to fetch a dashboard configuration JSON to inspect or backup its definition.
- Very specific: line 20
When full MCP observability tools (datadog-mcp) are available, as they natively format data for LLM context windows.
- Distinctive: line 21
If the project uses Pulumi or Terraform for Datadog resource creation (use the respective Infrastructure-as-Code skill).
- Distinctive: line 22
When a simple web UI link to the Datadog dashboard would suffice for a human user.
- Very specific: line 32
Verify Credentials: Ensure DD-API-KEY and DD-APPLICATION-KEY are available in the environment.
- Very specific: line 33
Determine Datadog Site: Default is datadoghq.com, but it could be datadoghq.eu, us3.datadoghq.com, etc.
- Very specific: line 34
Execute API Call: Use curl to construct the API request, passing necessary headers and query parameters.
- Very specific: line 35
Process Response: Use tools like jq to parse and extract relevant data from the JSON response.
- Distinctive: line 39
Secure Headers: Always pass keys via headers, never in the URL path.
- Very specific: line 40
Data Pruning: Use jq or python to prune large JSON responses, especially when fetching dashboards or monitors.
- Distinctive: line 53
Search for Monitors by tag or name:
- Very specific: line 89
Avoid logging or exposing DD-API-KEY or DD-APPLICATION-KEY in clear text outputs.
- Very specific: line 90
Do not fetch massive metric datasets without strict from and to bounds to avoid overloading the context window.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: datadog-api
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Execute Datadog API requests to fetch live objects, metrics, or monitor statuses.
When to Use
- When querying Datadog metrics, logs, or traces directly from the command line in an automated script.
- To retrieve and analyze the status of Datadog monitors.
- When you need to fetch a dashboard configuration JSON to inspect or backup its definition.
When Not to Use
- When full MCP observability tools (
datadog-mcp) are available, as they natively format data for LLM context windows. - If the project uses Pulumi or Terraform for Datadog resource creation (use the respective Infrastructure-as-Code skill).
- When a simple web UI link to the Datadog dashboard would suffice for a human user.
Common Pitfalls
- Paginating Endlessly: Running an API query that returns millions of log lines without using
jqto truncate or filter the output, causing the agent to run out of memory. - Leaking API Keys: Accidentally echoing the
DD-API-KEYorDD-APPLICATION-KEYin the terminal during debugging, exposing it in the workflow logs. - Incorrect Endpoint Region: Sending requests to
datadoghq.comwhen the organization's Datadog instance is actually hosted ondatadoghq.euorus3.datadoghq.com, resulting in HTTP 403 or 404 errors.
Core Process
- Verify Credentials: Ensure
DD-API-KEYandDD-APPLICATION-KEYare available in the environment. - Determine Datadog Site: Default is
datadoghq.com, but it could bedatadoghq.eu,us3.datadoghq.com, etc. based on the target environment. - Execute API Call: Use
curlto construct the API request, passing necessary headers and query parameters. - Process Response: Use tools like
jqto parse and extract relevant data from the JSON response.
Core Principles
- Secure Headers: Always pass keys via headers, never in the URL path.
- Data Pruning: Use
jqorpythonto prune large JSON responses, especially when fetching dashboards or monitors. - Pagination: Handle pagination when querying lists of items using
startorpageparameters.
Commands / Usage Patterns
Fetch a specific Dashboard by ID:
curl -s -X GET "https://api.datadoghq.com/api/v1/dashboard/<dashboard_id>" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"Search for Monitors by tag or name:
curl -s -X GET "https://api.datadoghq.com/api/v1/monitor/search?query=tag:env:prod" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"Query Timeseries Metrics (Unix epoch timestamps):
curl -s -X GET "https://api.datadoghq.com/api/v1/query?query=system.cpu.idle{*}&from=$(date -d '1 hour ago' +%s)&to=$(date +%s)" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"Get a specific Monitor's details:
curl -s -X GET "https://api.datadoghq.com/api/v1/monitor/<monitor_id>" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"References
- Datadog API Documentation: https://docs.datadoghq.com/api/latest/
Diagnostics and Troubleshooting
403 Forbidden: CheckDD-API-KEYandDD-APPLICATION-KEYvalidity and ensure they match the correct Datadog site (datadoghq.comvsdatadoghq.eu).429 Too Many Requests: Implement exponential backoff if hitting API rate limits.404 Not Found: Verify the ID or endpoint path.
What to Avoid
- Avoid logging or exposing
DD-API-KEYorDD-APPLICATION-KEYin clear text outputs. - Do not fetch massive metric datasets without strict
fromandtobounds to avoid overloading the context window.
Limitations
- The agent context window can be easily overwhelmed by full dashboard JSONs. Always filter the response with
jqwhen possible. - For retrieving telemetry (logs, metrics, traces, monitors), always prefer optimized MCP-based tools over raw API calls if available, as they are specifically designed to optimize data size for the agent's context window.
Related Skills
- datadog-agent: Configure the Datadog Agent for metric and log collection.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

