Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
DD_API_KEYYesDatadog API key Docs.
DD_APP_KEYYesDatadog application key (scoped to the user who created it) Docs.

Setup

  1. Find your Datadog site: Check the URL you use to access Datadog (e.g. app.datadoghq.com → site datadoghq.com, app.datadoghq.eu → datadoghq.eu). Tools take a ‘site’ parameter that defaults to datadoghq.com.
  2. Create an API key: In Organization Settings → API Keys (https://app.datadoghq.com/organization-settings/api-keys), create a key and add it to your .env as DD_API_KEY.
  3. Create an application key: In Organization Settings → Application Keys, create a key and add it as DD_APP_KEY. Application keys inherit the permissions of the user who created them; read access to monitors, dashboards, metrics, and logs is required.
  4. Verify access: Run the Validate API Key tool, then List Monitors.
  • Datadog authenticates with two headers: DD-API-KEY and DD-APPLICATION-KEY - both env vars are required
  • If your org is not on datadoghq.com, pass your site (e.g. datadoghq.eu) as the ‘site’ parameter on each tool call
Provider API reference: https://docs.datadoghq.com/api/latest/

Tools

ToolAccessDescription
Validate API KeyReadCheck that the configured Datadog API key is valid
List MonitorsReadList monitors with optional name or tag filtering
Get MonitorReadGet details and current state of a monitor
Mute MonitorWriteMute notifications for a monitor
List DashboardsReadList all dashboards
Query Timeseries MetricsReadQuery timeseries metric data over a time window
Search LogsReadSearch log events with a Datadog log query

Example prompts

  • List my Datadog monitors that are currently in Alert state.
  • Search Datadog logs for errors in the last 15 minutes and summarize them.