datadog
/datadog
Pomaga w monitoringu Datadog: śledzenie APM, własne metryki, zbieranie logów, dashboardy i monitory przy instrumentowaniu infrastruktury produkcyjnej.
- Autor
- G1Joshi ↗
- Repozytorium
- Agent-Skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga w monitoringu Datadog: śledzenie APM, własne metryki, zbieranie logów, dashboardy i monitory przy instrumentowaniu infrastruktury produkcyjnej.
Oryginalny opis (EN)
Expert Datadog monitoring assistance covering APM tracing, custom metrics, log collection, dashboards, and monitors. Use when instrumenting production infrastructure and observability.
Jak działa
- When to Use
- Quick Start
- Core Concepts
- Common Patterns
- Best Practices
- Troubleshooting
- References
Podgląd SKILL.md
---
name: datadog
description: Expert Datadog monitoring assistance covering APM tracing, custom metrics, log collection, dashboards, and monitors. Use when instrumenting production infrastructure and observability.
---
# Datadog
Datadog is a unified SaaS observability and security platform providing full-stack APM tracing, infrastructure monitoring, log aggregation, and real-time anomaly detection.
## When to Use
- **Enterprise Full-Stack Observability**: Unified APM tracing, infrastructure metrics, log aggregation, and real-user monitoring (RUM).
- **Distributed Microservice Tracing (APM)**: Visualizing request flow, latency bottlenecks, and database query timings across services.
- **Automated Anomaly Detection & Alerting**: Machine learning-powered alert monitors detecting traffic spikes, errors, and memory leaks.
- **Cloud Cost & Security Posture Management**: Tracking cloud resource misconfigurations, compliance, and container security.
## Quick Start
### 1. Install Datadog Agent (Linux/macOS)
```bash
DD_API_KEY="<YOUR_DATADOG_API_KEY>" DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script.sh)"
```
### 2. Auto-Instrument Node.js Application
```bash
npm install dd-trace --save
```
```javascript
// At the absolute top of your entrypoint file (index.js)
import tracer from "dd-trace";
tracer.init({
service: "order-service",
env: "production",
logInjection: true,
runtimeMetrics: true,
});
```
## Core Concepts
### Auto-Instrumenting Applications with dd-trace
Adding distributed tracing to a Node.js microservice:
```javascript
// Must be initialized before any other module imports!
import tracer from "dd-trace";
tracer.init({
env: "production",
service: "order-processing-service",
version: "2026.1.0",
logInjection: true, // Automatically inject trace IDs into logs
runtimeMetrics: true, // Collect GC and event loop latency metrics
});
export default tracer;
```
### Custom Business Metrics & StatsD
Submitting custom business KPIs with high performance over UDP:
```python
from datadog import initialize, statsd
initialize(statsd_host="127.0.0.1", statsd_port=8125)
# Increment transaction counter with tags
statsd.increment(
'ecommerce.checkout.success',
tags=['payment_method:apple_pay', 'region:us_east']
)
# Record latency histogram
statsd.histogram(
'ecommerce.checkout.duration_ms',
value=245.5,
tags=['tier:premium']
)
```
### Correlating Logs with Distributed Traces
Formatting structured logs with active Datadog trace context:
```json
{
"timestamp": "2026-03-27T10:15:30.123Z",
"level": "error",
"message": "Payment authorization timed out with gateway",
"dd": {
"trace_id": "847291038472918374",
"span_id": "1928374650192834",
"service": "order-processing-service",
"version": "2026.1.0",
"env": "production"
}
}
```
## Common Patterns
### Distributed APM Tracing with Custom Spans
**Problem**: Pinpointing exact latency bottlenecks within deeply nested asynchronous service methods.
**Solution**:
Wrap business logic in custom Datadog tracer spans:
```javascript
import tracer from "dd-trace";
tracer.init(); // Initialize tracer before importing other packages
async function processOrder(orderId) {
return tracer.trace(
"order.process",
{ resource: "checkout" },
async (span) => {
span.setTag("order.id", orderId);
const inventory = await checkInventory(orderId);
span.setTag("inventory.status", inventory.status);
const charge = await chargeCard(orderId);
return { inventory, charge };
},
);
}
```
## Best Practices
**Do**:
- Enforce Unified Service Tagging across all systems: `env`, `service`, and `version` tags must match everywhere.
- Enable `logInjection: true` in APM tracers to link logs and traces together automatically in the UI.
- Use DogStatsD over local UDP to submit high-frequency metrics without blocking application request threads.
- Configure log sampling and exclusion filters in `datadog.yaml` to control ingestion costs.
**Don't**:
- Initialize APM tracers after importing HTTP or database modules; tracer must load first to patch libraries.
- Emit high-cardinality tags (e.g. user IDs, order UUIDs, timestamps) as custom metric tag dimensions; use logs/spans.
- Log sensitive PII or credentials; configure Datadog log scrub rules (`log_processing_rules`).
## Troubleshooting
| Error | Cause | Solution |
| :------------------------------------------------------ | :--------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------- |
| `Datadog Agent: API Key invalid` | `DD_API_KEY` contains typo or belongs to wrong Datadog site (e.g. EU vs US). | Verify API key and ensure `DD_SITE` is configured correctly (`datadoghq.com` vs `datadoghq.eu`). |
| `Traces not showing in APM dashboard` | Application tracer unable to reach Datadog agent on port 8126. | Set `DD_AGENT_HOST=127.0.0.1` and verify agent container port mapping. |
| `Too many metrics: Custom metric cardinality explosion` | Using dynamic UUIDs or timestamps as custom metric tag values. | Move high-cardinality values from metric tags to log attributes. |
## References
- [Datadog Documentation](https://docs.datadoghq.com/)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · G1Joshi/Agent-Skills | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| yassimba/loom | 100 | Apache-2.0 |
| OpenHands/extensions | 100 | MIT |
| getsentry/junior | 100 | Apache-2.0 |
| jjmartres/ai-coding-agents | 100 | MIT |
| greedychipmunk/agent-skills | 100 | MIT |
| HelixDevelopment/agent | 100 | MIT |
| letta-ai/skills | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki f82314510845 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 84use-datadog
Obsługuje zadania observability przez Datadog CLI (pup) zamiast surowych wywołań API lub interfejsu WWW: monitory, alerty, logi, metryki, APM, incydenty, SLO i dashboardy. - 100ops-monitor
Prawdopodobnie sprawdza alerty monitoringu i APM w Datadog oraz stan monitorowanych usług. - 100datadog-cli
Obsługuje Datadog CLI do przeszukiwania logów, odpytywania metryk, śledzenia żądań i zarządzania dashboardami przy debugowaniu problemów produkcyjnych. - 84datadog-cost-tracker
Śledzi i analizuje koszty ingestii w Datadog na podstawie metryk estimated_usage, w tym największych źródeł logów i porównania ingestii spanów APM przed i po wdrożeniu. - 95observability
Wdraża OpenTelemetry, śledzenie rozproszone, logi strukturalne i metryki w Prometheus, Grafanie lub Datadog. - 100monitoring-observability
Konfiguruje monitoring, logowanie i obserwowalność aplikacji i infrastruktury: health checks, zbieranie metryk, agregacja logów i alerty z Prometheusem, Grafaną, ELK i Datadog.