Skip to content
Back to skills

Datadog

ASecurity

The Datadog API allows you to submit metrics, events, and manage dashboards programmatically. This skill focuses on the `@datadog/datadog-api-client` library.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsbashapisecurity

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill datadog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Datadog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Datadog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-datadog/badge)](https://www.skillsdirectory.com/skills/ashish7802-datadog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Datadog API Skill

## Overview
The Datadog API allows you to submit metrics, events, and manage dashboards programmatically. This skill focuses on the `@datadog/datadog-api-client` library.

## Installation
```bash
npm install @datadog/datadog-api-client
pip install datadog-api-client
```

## Authentication
Requires two headers: `DD-API-KEY` (for submitting data) and `DD-APPLICATION-KEY` (for reading data or managing configuration).

## Core Concepts
- **Metric**: Time-series data points.
- **Tags**: Key:Value pairs attached to metrics (crucial for filtering).
- **Monitor**: An alert configured to trigger on thresholds.

## Common Workflows
1. Instantiate the API client.
2. Construct a `Series` object with points and tags.
3. Call `metricsApi.submitMetrics`.

## Error Handling
Catch HTTP 403 (Invalid Keys) and HTTP 429. If submitting metrics fails, log the `response.body.errors` array.

## Security
API keys have agent-level permissions. Application keys should be scoped strictly (e.g., `dashboards_read`).

## Rate Limits
Submit Metrics endpoint allows 100 requests per 10 seconds. Use batching heavily.

## Best Practices
Batch metrics before sending. Never submit a single data point per API call in high-throughput environments.

## Troubleshooting
If metrics don't appear, ensure the UNIX timestamp attached to your points is in seconds, not milliseconds.

## References
- [API Reference](https://docs.datadoghq.com/api/)

## Why use this skill
Use this when your agent works with **datadog** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Using outdated SDK or API versions from training data
- Inventing environment variable names
- Omitting error handling and retry logic

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- No graph relationships yet — see the knowledge graph in the docs site.

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md2 KB
  • examples/example.py87 B
  • examples/example.ts109 B
  • prompts/submit-metric.md148 B
  • tests/skill.test.ts30 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.