datadog
Datadogを設定・管理し、インフラ監視やアプリケーション性能監視、ログ管理、アラート設定などを行い、Datadogエージェントのセットアップ、ダッシュボード作成、各種サービス連携、APIを通じたメトリクスやログのクエリなどを実現するSkill。
📜 元の英語説明(参考)
Configure and manage Datadog for infrastructure monitoring, application performance monitoring (APM), log management, and alerting. Use when a user needs to set up Datadog agents, create dashboards, configure monitors and alerts, integrate services, or query metrics and logs through Datadog's API.
🇯🇵 日本人クリエイター向け解説
Datadogを設定・管理し、インフラ監視やアプリケーション性能監視、ログ管理、アラート設定などを行い、Datadogエージェントのセットアップ、ダッシュボード作成、各種サービス連携、APIを通じたメトリクスやログのクエリなどを実現するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o datadog.zip https://jpskill.com/download/14820.zip && unzip -o datadog.zip && rm datadog.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/14820.zip -OutFile "$d\datadog.zip"; Expand-Archive "$d\datadog.zip" -DestinationPath $d -Force; ri "$d\datadog.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
datadog.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
datadogフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Datadog
概要
インフラストラクチャのメトリクス、APMトレース、ログ集約、ダッシュボード、アラートを含む、フルスタックの可観測性のために Datadog を設定および管理します。エージェントのインストール、統合構成、モニターの作成、API の使用について説明します。
手順
タスク A: Datadog エージェントのインストールと構成
- ターゲットホストにエージェントをインストールします
- メインの
datadog.yamlを API キーとサイトで構成します - 関連する統合を有効にします
# /etc/datadog-agent/datadog.yaml — メインのエージェント構成
api_key: "<YOUR_DD_API_KEY>"
site: "datadoghq.com"
hostname: "web-server-01"
tags:
- env:production
- service:web-api
- team:platform
logs_enabled: true
apm_config:
enabled: true
env: production
process_config:
process_collection:
enabled: true
# Ubuntu/Debian に Datadog エージェントをインストール
DD_API_KEY="<YOUR_DD_API_KEY>" DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"
# エージェントのステータスを確認
sudo datadog-agent status
タスク B: 統合の構成
# /etc/datadog-agent/conf.d/postgres.d/conf.yaml — PostgreSQL 統合
init_config:
instances:
- host: localhost
port: 5432
username: datadog
password: "<DB_PASSWORD>"
dbname: myapp_production
tags:
- env:production
- service:database
collect_activity_metrics: true
collect_database_size_metrics: true
# /etc/datadog-agent/conf.d/nginx.d/conf.yaml — Nginx 統合
init_config:
instances:
- nginx_status_url: http://localhost:8080/nginx_status
tags:
- env:production
- service:web-proxy
タスク C: モニターとアラートの作成
# API 経由でメトリックモニターを作成 — 高 CPU アラート
curl -X POST "https://api.datadoghq.com/api/v1/monitor" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"name": "High CPU on {{host.name}}",
"type": "metric alert",
"query": "avg(last_5m):avg:system.cpu.user{env:production} by {host} > 85",
"message": "CPU usage above 85% on {{host.name}}.\n\n@slack-ops-alerts @pagerduty-infra",
"tags": ["env:production", "team:platform"],
"options": {
"thresholds": {
"critical": 85,
"warning": 70
},
"notify_no_data": true,
"no_data_timeframe": 10,
"renotify_interval": 30,
"escalation_message": "CPU still elevated on {{host.name}} — escalating."
}
}'
# ログベースのモニターを作成 — エラー率の急上昇
curl -X POST "https://api.datadoghq.com/api/v1/monitor" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"name": "Error log spike in payment-service",
"type": "log alert",
"query": "logs(\"service:payment-service status:error\").index(\"main\").rollup(\"count\").by(\"service\").last(\"5m\") > 50",
"message": "More than 50 error logs in 5 minutes for payment-service.\n\n@slack-payments-team",
"options": {
"thresholds": { "critical": 50, "warning": 25 },
"enable_logs_sample": true
}
}'
タスク D: ダッシュボードの構築
# API 経由でダッシュボードを作成 — サービス概要
curl -X POST "https://api.datadoghq.com/api/v1/dashboard" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"title": "Web API Service Overview",
"layout_type": "ordered",
"widgets": [
{
"definition": {
"type": "timeseries",
"title": "Request Rate",
"requests": [
{
"q": "sum:trace.http.request.hits{service:web-api,env:production}.as_count()",
"display_type": "bars"
}
]
}
},
{
"definition": {
"type": "query_value",
"title": "P99 Latency",
"requests": [
{
"q": "p99:trace.http.request.duration{service:web-api,env:production}"
}
],
"precision": 2
}
},
{
"definition": {
"type": "toplist",
"title": "Top Endpoints by Error Rate",
"requests": [
{
"q": "sum:trace.http.request.errors{service:web-api,env:production} by {resource_name}.as_count()"
}
]
}
}
]
}'
タスク E: APM インストルメンテーション
# app.py — ddtrace を使用した Python APM 自動インストルメンテーション
from ddtrace import tracer, patch_all
# サポートされているすべてのライブラリ (requests, flask, sqlalchemy など) にパッチを適用
patch_all()
tracer.configure(
hostname="localhost",
port=8126,
service="payment-service",
env="production",
version="2.1.0",
)
from flask import Flask
app = Flask(__name__)
@app.route("/charge", methods=["POST"])
def charge():
with tracer.trace("payment.process", service="payment-service") as span:
span.set_tag("payment.provider", "stripe")
result = process_payment()
span.set_metric("payment.amount", result["amount"])
return {"status": "ok"}
# ddtrace 自動インストルメンテーションで実行
pip install ddtrace
ddtrace-run python app.py
タスク F: ログ収集とパイプライン
# /etc/datadog-agent/conf.d/python.d/conf.yaml — カスタムログ収集
logs:
- type: file
path: /var/log/myapp/*.log
service: web-api
source: python
tags:
- env:production
log_processing_rules:
- type: multi_line
name: python_traceback
pattern: "Traceback \\(most recent call last\\)"
# API 経由でログをクエリ — 過去 1 時間のエラーを検索
curl -X POST "https://api.datadoghq.com/api/v2/logs/events/search" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"filter": {
"query": "service:web-api status:error",
"from":
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Datadog
Overview
Set up and manage Datadog for full-stack observability including infrastructure metrics, APM traces, log aggregation, dashboards, and alerting. Covers agent installation, integration configuration, monitor creation, and API usage.
Instructions
Task A: Install and Configure the Datadog Agent
- Install the agent on the target host
- Configure the main
datadog.yamlwith API key and site - Enable relevant integrations
# /etc/datadog-agent/datadog.yaml — Main agent configuration
api_key: "<YOUR_DD_API_KEY>"
site: "datadoghq.com"
hostname: "web-server-01"
tags:
- env:production
- service:web-api
- team:platform
logs_enabled: true
apm_config:
enabled: true
env: production
process_config:
process_collection:
enabled: true
# Install Datadog Agent on Ubuntu/Debian
DD_API_KEY="<YOUR_DD_API_KEY>" DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"
# Verify agent status
sudo datadog-agent status
Task B: Configure Integrations
# /etc/datadog-agent/conf.d/postgres.d/conf.yaml — PostgreSQL integration
init_config:
instances:
- host: localhost
port: 5432
username: datadog
password: "<DB_PASSWORD>"
dbname: myapp_production
tags:
- env:production
- service:database
collect_activity_metrics: true
collect_database_size_metrics: true
# /etc/datadog-agent/conf.d/nginx.d/conf.yaml — Nginx integration
init_config:
instances:
- nginx_status_url: http://localhost:8080/nginx_status
tags:
- env:production
- service:web-proxy
Task C: Create Monitors and Alerts
# Create a metric monitor via API — High CPU alert
curl -X POST "https://api.datadoghq.com/api/v1/monitor" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"name": "High CPU on {{host.name}}",
"type": "metric alert",
"query": "avg(last_5m):avg:system.cpu.user{env:production} by {host} > 85",
"message": "CPU usage above 85% on {{host.name}}.\n\n@slack-ops-alerts @pagerduty-infra",
"tags": ["env:production", "team:platform"],
"options": {
"thresholds": {
"critical": 85,
"warning": 70
},
"notify_no_data": true,
"no_data_timeframe": 10,
"renotify_interval": 30,
"escalation_message": "CPU still elevated on {{host.name}} — escalating."
}
}'
# Create a log-based monitor — Error rate spike
curl -X POST "https://api.datadoghq.com/api/v1/monitor" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"name": "Error log spike in payment-service",
"type": "log alert",
"query": "logs(\"service:payment-service status:error\").index(\"main\").rollup(\"count\").by(\"service\").last(\"5m\") > 50",
"message": "More than 50 error logs in 5 minutes for payment-service.\n\n@slack-payments-team",
"options": {
"thresholds": { "critical": 50, "warning": 25 },
"enable_logs_sample": true
}
}'
Task D: Build Dashboards
# Create a dashboard via API — Service overview
curl -X POST "https://api.datadoghq.com/api/v1/dashboard" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"title": "Web API Service Overview",
"layout_type": "ordered",
"widgets": [
{
"definition": {
"type": "timeseries",
"title": "Request Rate",
"requests": [
{
"q": "sum:trace.http.request.hits{service:web-api,env:production}.as_count()",
"display_type": "bars"
}
]
}
},
{
"definition": {
"type": "query_value",
"title": "P99 Latency",
"requests": [
{
"q": "p99:trace.http.request.duration{service:web-api,env:production}"
}
],
"precision": 2
}
},
{
"definition": {
"type": "toplist",
"title": "Top Endpoints by Error Rate",
"requests": [
{
"q": "sum:trace.http.request.errors{service:web-api,env:production} by {resource_name}.as_count()"
}
]
}
}
]
}'
Task E: APM Instrumentation
# app.py — Python APM auto-instrumentation with ddtrace
from ddtrace import tracer, patch_all
# Patch all supported libraries (requests, flask, sqlalchemy, etc.)
patch_all()
tracer.configure(
hostname="localhost",
port=8126,
service="payment-service",
env="production",
version="2.1.0",
)
from flask import Flask
app = Flask(__name__)
@app.route("/charge", methods=["POST"])
def charge():
with tracer.trace("payment.process", service="payment-service") as span:
span.set_tag("payment.provider", "stripe")
result = process_payment()
span.set_metric("payment.amount", result["amount"])
return {"status": "ok"}
# Run with ddtrace auto-instrumentation
pip install ddtrace
ddtrace-run python app.py
Task F: Log Collection and Pipelines
# /etc/datadog-agent/conf.d/python.d/conf.yaml — Custom log collection
logs:
- type: file
path: /var/log/myapp/*.log
service: web-api
source: python
tags:
- env:production
log_processing_rules:
- type: multi_line
name: python_traceback
pattern: "Traceback \\(most recent call last\\)"
# Query logs via API — Find errors in last hour
curl -X POST "https://api.datadoghq.com/api/v2/logs/events/search" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d '{
"filter": {
"query": "service:web-api status:error",
"from": "now-1h",
"to": "now"
},
"sort": "-timestamp",
"page": { "limit": 25 }
}'
Best Practices
- Use consistent tagging:
env,service,teamon all resources - Set
notify_no_dataon critical monitors to catch silent failures - Use composite monitors to reduce alert noise by correlating signals
- Configure log exclusion filters to control ingestion costs
- Use Unified Service Tagging (
DD_ENV,DD_SERVICE,DD_VERSION) across APM, logs, and metrics