技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
datadog【数据与研究】Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: datadog description: Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems. user-invocable: false disable-model-invocation: true version: 1.0.0 category: platform author: Claude MPM Team license: MIT progressive_disclosure: entry_point: summary: "Unified observability platform for APM, logs, metrics, synthetics, and RUM with 1000+ integrations." when_to_use: "When implementing production monitoring, distributed tracing, log aggregation, custom metrics, or cost optimization." quick_start: "1. Install Datadog Agent. 2. Enable APM with automatic instrumentation. 3. Configure log collection. 4. Set up alerts." references: - agent-installation.md - apm-instrumentation.md - log-management.md - custom-metrics.md - alerting.md - cost-optimization.md - kubernetes.md context_limit: 800 tags:
Datadog is a SaaS observability platform providing unified monitoring across infrastructure, applications, logs, and user experience. It offers AI-powered anomaly detection, 1000+ integrations, and OpenTelemetry compatibility.
Core Capabilities:
Activate when:
Do not use when:
Docker (simplest):
docker run -d --name dd-agent \
-e DD_API_KEY=<YOUR_API_KEY> \
-e DD_SITE="datadoghq.com" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
gcr.io/datadoghq/agent:7
Kubernetes (Helm):
helm repo add datadog https://helm.datadoghq.com
helm install datadog-agent datadog/datadog \
--set datadog.apiKey=<YOUR_API_KEY> \
--set datadog.apm.enabled=true \
--set datadog.logs.enabled=true
Python:
from ddtrace import tracer, patch_all
# Automatic instrumentation for common libraries
patch_all()
# Manual span for custom operations
with tracer.trace("custom.operation", service="my-service") as span:
span.set_tag("user.id", user_id)
# your code here
Node.js:
// Must be first import
const tracer = require('dd-trace').init({
service: 'my-service',
env: 'production',
version: '1.0.0',
});
Tags enable filtering, aggregation, and cost attribution. Use consistent tags across all telemetry.
Required Tags:
| Tag | Purpose | Example |
|---|---|---|
env | Environment | env:production |
service | Service name | service:api-gateway |
version | Deployment version | version:1.2.3 |
team | Owning team | team:platform |
Avoid High-Cardinality Tags:
Datadog correlates metrics, traces, and logs automatically:
Basic → APM tracing → Custom spans → Custom metrics → Profiling → RUM
For detailed implementation:
When using this skill, consider these related skills (if deployed):
Official Documentation:
Cost Management: