datadog-analyser
npx skills add https://github.com/delexw/claude-code-misc --skill datadog-analyser
Agent 安装分布
Skill 文档
Datadog Analyser
Investigate and analyse Datadog observability data using the pup CLI.
Arguments
$ARGUMENTS[0]â (optional) What to analyse (e.g."error rate last 1h","triggered monitors","incidents today","service:api logs"). If not provided, perform a general health overview.
System Requirements
pupCLI installed â see https://github.com/datadog-labs/pup/blob/main/README.mdDD_API_KEYandDD_APP_KEYenvironment variables setDD_SITEset if not usingdatadoghq.com(optional)
Output Directory
.datadog-analyser-tmp/
âââ report.md # Final analysis report
Execution
1. Verify Connection
Run pup test to confirm the CLI is configured and connected:
pup test
If this fails, use AskUserQuestion to inform the user that pup is not configured or DD_API_KEY/DD_APP_KEY are not set, and link to the setup guide: https://github.com/datadog-labs/pup/blob/main/README.md
Do NOT continue until pup test succeeds.
2. Discover Available Commands
Run pup agent guide to get the full list of available commands and usage patterns for this session:
pup agent guide
If pup agent guide is not available (command not found), use the known command reference below and continue.
3. Analyse
Based on $ARGUMENTS[0], determine which pup commands are most relevant. Use --output=json (default) for all commands to get structured output. Run commands sequentially.
Common analysis patterns:
| Goal | Commands |
|---|---|
| Triggered/alerting monitors | pup monitors list, pup monitors search --query="status:alert" |
| Error logs | pup logs search --query="status:error" --from="1h" |
| Metric trend | pup metrics query --query="<metric>" --from="<window>" |
| Active incidents | pup incidents list |
| SLO health | pup slos list, pup slos status <id> |
| APM service health | pup apm services, pup apm dependencies |
| Security signals | pup security signals list, pup security findings search |
| Error tracking | pup error-tracking issues search --query="<service>" |
| Synthetics failures | pup synthetics tests list |
| CI failures | pup cicd pipelines list, pup cicd events list |
All commands default to JSON output. Use flags like --from, --to, --query, --tags to narrow scope. Refer to pup <command> --help for available flags.
4. Report
Write a structured analysis to .datadog-analyser-tmp/report.md using the Write tool:
- Summary â Overall health status and key findings
- Details â Breakdown of findings per domain (monitors, logs, metrics, etc.)
- Anomalies â Anything alerting, degraded, or unusual
- Recommendations â Suggested follow-up actions
Inform the user of the report location: .datadog-analyser-tmp/report.md