Skip to content

Datadog

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:

Terminal window
pip install datadog

Configure with your keys:

Terminal window
export DATADOG_API_KEY="your-api-key"
export DATADOG_APP_KEY="your-app-key"

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

Terminal window
export DATADOG_HOST="https://api.datadoghq.eu" # EU site

Verify:

Terminal window
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”