All skills
davila7 avatar

/datadog-cli

@1c194fd

Datadog CLI for searching logs, querying metrics, tracing requests, and managing dashboards. Use this when debugging production issues or working with Datadog observability.

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/datadog-cli

This session only. Nothing lands on disk.

referencesmetrics.md

≈346 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Metrics Reference

metrics query

Query timeseries metrics from Datadog.

npx @leoflores/datadog-cli metrics query --query "<metrics-query>" [--from <time>] [--to <time>]
Flag Default Description
--query required Metrics query
--from 15m Start time
--to now End time

Query Format

<aggregation>:<metric>{<tags>}

Aggregations: avg, sum, min, max, count

Examples

System Metrics

npx @leoflores/datadog-cli metrics query --query "avg:system.cpu.user{*}" --from 1h --pretty
npx @leoflores/datadog-cli metrics query --query "avg:system.mem.used{*}" --from 1h --pretty

Service-Specific

npx @leoflores/datadog-cli metrics query --query "avg:system.cpu.user{service:api}" --from 1h --pretty

APM Metrics

npx @leoflores/datadog-cli metrics query --query "sum:trace.http.request.errors{service:api}.as_count()" --from 1h --pretty
npx @leoflores/datadog-cli metrics query --query "p99:trace.http.request.duration{service:api}" --from 1h --pretty

With Tags

npx @leoflores/datadog-cli metrics query --query "avg:system.cpu.user{env:prod,service:api}" --from 1h --pretty

Output

Returns series with:

  • Metric name and scope
  • Point list (timestamp/value pairs)
  • Tags
  • Latest value + min/max/avg stats

Source: SKILL.md on GitHub

2 warnings5mo5 checks · Risk MEDIUM
  • Gen Agent Trust Hub7mo

    This skill downloads and executes an untrusted third-party CLI package (@leoflores/datadog-cli) from npm via npx. It also processes external log data which provides a vector for indirect prompt injection, potentially allowing attackers to influence agent actions through malicious log entries.

  • Socket6mo

    No alerts

  • Snyk7mo

    Risk: LOW · No issues

  • Runlayer7mo

    7/7 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 1c194fd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 14 hours ago.

Activeupdated 8 months ago

README badge

README badge for davila7/claude-code-templates/datadog-cli