用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ThinkfleetAI/thinkfleet-engine --skill datadog命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | datadog |
| description | Query Datadog metrics, monitors, events, and logs via the REST API. |
| metadata | {"thinkfleetbot":{"emoji":"🐕","requires":{"bins":["curl","jq"],"env":["DD_API_KEY","DD_APP_KEY"]}}} |
Query metrics, monitors, and logs via the Datadog API.
DD_API_KEY - Datadog API keyDD_APP_KEY - Datadog Application keyDD_SITE - Datadog site (e.g. datadoghq.com, datadoghq.eu, default: datadoghq.com)curl -s -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/monitor" | jq '.[] | {id, name, type, overall_state}'
curl -s -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/monitor/12345" | jq '{id, name, type, query, overall_state, message}'
curl -s -X POST -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
-H "Content-Type: application/json" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/monitor/12345/mute" \
-d '{"end": '$(date -d '+1 hour' +%s)'}' | jq '{id, name}'
curl -s -G -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/query" \
--data-urlencode "query=avg:system.cpu.user{host:my-server}" \
--data-urlencode "from=$(date -d '1 hour ago' +%s)" \
--data-urlencode "to=$(date +%s)" | jq '.series[0] | {metric, pointlist: .pointlist[-5:]}'
curl -s -X POST -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
-H "Content-Type: application/json" \
"https://api.${DD_SITE:-datadoghq.com}/api/v2/logs/events/search" \
-d '{
"filter": {"query": "service:my-app status:error", "from": "now-1h", "to": "now"},
"page": {"limit": 10}
}' | jq '.data[] | {timestamp: .attributes.timestamp, message: .attributes.message}'
curl -s -G -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/events" \
--data-urlencode "start=$(date -d '24 hours ago' +%s)" \
--data-urlencode "end=$(date +%s)" | jq '.events[:5] | .[] | {title, date_happened, priority}'
curl -s -X POST -H "DD-API-KEY: $DD_API_KEY" \
-H "Content-Type: application/json" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/events" \
-d '{"title": "Deployment Complete", "text": "v1.2.3 deployed to production", "priority": "normal", "tags": ["env:prod"]}' | jq '{id: .event.id}'
curl -s -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" \
"https://api.${DD_SITE:-datadoghq.com}/api/v1/dashboard" | jq '.dashboards[:10] | .[] | {id, title}'
DD_SITE for EU or other regional endpoints.avg:metric{tags}).