New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsAnalytics & Monitoring
Tool

Datadog

Query metrics, search logs, manage monitors, and create incidents in Datadog from workflows

Integrate Datadog observability into your workflows. Query time-series metrics, search logs, inspect monitors, and create or list incidents — all wired to upstream data and downstream agents without leaving the workflow canvas.

Overview

PropertyValue
Typedatadog
CategoryTool — Observability / Monitoring
AuthAPI Key + Application Key (DD-API-KEY / DD-APPLICATION-KEY headers)

Operations

OperationTool IDDescription
Query Metricsdatadog_query_metricsQuery time-series metric data for a given expression and time range using the v1 metrics API
Query Logsdatadog_query_logsSearch log events using Datadog's v2 Logs Search API for a given filter and time window
List Monitorsdatadog_list_monitorsRetrieve all monitors configured in the account via the v1 monitor API
Create Incidentdatadog_create_incidentOpen a new incident in Datadog with a given title using the v2 Incidents API
List Incidentsdatadog_list_incidentsList all incidents in the account, with pagination cursor support
List Dashboardsdatadog_list_dashboardsRetrieve all dashboards in the account via the v1 dashboard API

Configuration

SettingTypeRequiredDescription
apiKeystringYes (all operations)Secret. Datadog API Key. Pass as {{DATADOG_API_KEY}}. Sent as the DD-API-KEY header on every request.
appKeystringYes (all operations)Secret. Datadog Application Key. Pass as {{DATADOG_APP_KEY}}. Sent as the DD-APPLICATION-KEY header. The Application Key scopes which data the API Key can access.
sitestringNoDatadog site hostname. Defaults to datadoghq.com (US1). Supported values: datadoghq.com (US1), us3.datadoghq.com (US3), us5.datadoghq.com (US5), datadoghq.eu (EU).
querystringYes (datadog_query_metrics, datadog_query_logs)For metrics: a Datadog metric query expression, e.g. avg:system.cpu.user{*}. For logs: a log search filter, e.g. service:myapp status:error.
fromnumberYes (datadog_query_metrics, datadog_query_logs)Start of the time range as a Unix epoch timestamp in seconds, e.g. 1700000000.
tonumberYes (datadog_query_metrics, datadog_query_logs)End of the time range as a Unix epoch timestamp in seconds, e.g. 1700003600.
titlestringYes (datadog_create_incident)Title of the new incident to create.

Outputs

datadog_query_metrics

FieldTypeDescription
seriesjsonArray of metric series objects returned by Datadog, each containing the metric name, scope, pointlist, and aggregated values
fromnumberQuery start time echoed back by the API (optional)
tonumberQuery end time echoed back by the API (optional)
querystringThe metric query string that was executed

datadog_query_logs

FieldTypeDescription
logsjsonArray of log event objects matching the search filter, up to 50 per page
cursorstringPagination cursor (after token) for retrieving the next page of results (optional)

datadog_list_monitors

FieldTypeDescription
monitorsjsonArray of monitor objects, each including the monitor's id, name, type, state, and query

datadog_create_incident

FieldTypeDescription
idstringUnique identifier of the newly created incident
titlestringTitle of the created incident as confirmed by Datadog
statusstringCurrent status of the incident (e.g. active)
createdstringISO 8601 creation timestamp of the incident (optional)

datadog_list_incidents

FieldTypeDescription
incidentsjsonArray of incident data objects, each with id, type, and attributes (title, status, created, etc.)
cursorstringPagination cursor (next_offset) for fetching the next page of incidents (optional)

datadog_list_dashboards

FieldTypeDescription
dashboardsjsonArray of dashboard objects, each containing the dashboard's id, title, url, and layout type

Example

[Starter] → [Datadog: Query Metrics] → [Agent: analyze result]

A scheduled workflow fires every 15 minutes and queries CPU utilization using the Datadog block with apiKey set to {{DATADOG_API_KEY}}, appKey set to {{DATADOG_APP_KEY}}, query set to avg:system.cpu.user{env:production}, and the from/to values derived from the Starter block's trigger timestamp as {{starter.windowStart}} and {{starter.windowEnd}}. The downstream Agent block reads {{datadog.series}} to detect anomalies and — when CPU exceeds a threshold — feeds the finding into a second Datadog block running Create Incident with title set to High CPU detected in production at {{starter.windowEnd}}.

Tips

  • Both keys are always required. The apiKey authenticates the request at the Datadog API gateway; the appKey determines which resources that key can access (monitors, logs, incidents). Keep them separate secrets and store them as environment variables ({{DATADOG_API_KEY}} and {{DATADOG_APP_KEY}}).
  • Pick the right site. If your Datadog organization is on EU (datadoghq.eu), US3, or US5, you must set site accordingly — the default datadoghq.com (US1) will return auth errors for accounts on other sites.
  • Time ranges for logs and metrics are in Unix epoch seconds, not milliseconds. To convert a JavaScript Date.now() value from an upstream block, divide by 1000.
  • Log search is paginated at 50 results per page. If {{datadog.cursor}} is non-null after a Query Logs call, use it in a loop block to fetch subsequent pages.
  • datadog_create_incident sets customerImpacted: false by default. If you need to mark an incident as customer-impacting, use the Datadog API directly via an HTTP block after creating the incident and updating its attributes.