datadog-cli

Search Datadog logs, query metrics, and manage dashboards via CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/albertms22/agent-toolkit --skill datadog-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datadog-cli
Source: https://github.com/albertms22/agent-toolkit/tree/main/skills/datadog-cli
Command: npx skills add https://github.com/albertms22/agent-toolkit --skill datadog-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Datadog CLI helps AI agents debug and triage production issues by enabling fast access to Datadog logs, metrics, traces, and dashboards.

Core Features & Use Cases

  • Log search and tail: query logs with Datadog syntax and stream real-time output.
  • Trace analysis and service context: follow distributed traces across services for end-to-end visibility.
  • Metrics queries and dashboard management: run timeseries queries and manage dashboards from the CLI.
  • Use Case: during an incident, quickly search for errors, correlate traces, verify metrics, and review relevant dashboards.

Quick Start

Install the Datadog CLI and run a sample command to begin triaging an incident.

Frequently Asked Questions about datadog-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Datadog logs and correlate traces during a production incident?

You can search Datadog logs and correlate distributed traces during production triage by running CLI commands to query errors, follow traces across services, and stream real-time log output for end-to-end visibility.

Can I query Datadog metrics and manage dashboards from the CLI?

Yes, you can query Datadog metrics and manage dashboards from the CLI by executing timeseries queries and performing list, get, create, update, and delete operations on dashboards.

What is the best way to triage metrics and logs across multiple services?

Triage metrics and logs across multiple services by using Datadog CLI commands to explore log patterns, compare outputs, and run multi-service queries to investigate production issues efficiently.

Do I need specific environment variables to run Datadog CLI commands?

Yes, running Datadog CLI commands requires proper handling of environment variables and site-specific endpoints to execute log searches, metrics queries, and dashboard operations correctly.

How does log tailing work with Datadog CLI for real-time incident debugging?

Log tailing with Datadog CLI streams real-time log output using Datadog syntax, enabling AI agents to monitor live errors and debug production incidents as they occur.