Aller au contenu
CategoryMonitoring
CLIdog (dogshell)
AuthAPI key
ConfigDATADOG_API_KEY (required), DATADOG_APP_KEY (required), DATADOG_HOST (optional)

Wraps the Datadog dog CLI (dogshell) to give CodeBuddy access to your Datadog observability data. The agent can query metrics, search logs, inspect APM traces, and check monitor status.

Install dogshell:

Fenêtre de terminal
pip install datadog

Configure with your keys:

Fenêtre de terminal
export DATADOG_API_KEY="your-api-key"
export DATADOG_APP_KEY="your-app-key"

Optionally set the Datadog site (default: datadoghq.com):

Fenêtre de terminal
export DATADOG_HOST="https://api.datadoghq.eu" # EU site

Verify:

Fenêtre de terminal
dog metric list
  • Metrics — query, post, list available metrics
  • Logs — search, filter by service/level/time range
  • APM traces — inspect traces, view spans, latency analysis
  • Monitors — list, check status, mute/unmute
  • Dashboards — list, pull widget data
  • Events — post, search, stream
  • “Show the p99 latency for /api/users over the last 24 hours”
  • “Find all error logs from the payment service in the last hour”
  • “Which monitors are currently in alert status?”
  • “Post an event to Datadog noting today’s deployment”