Skip to content
Datadog

How to use Datadog

DevelopersCost: 1 credit per runTop 100 · #69Full guide

What it is for

The Datadog component lets you send logs to your Datadog account from flooows, one at a time or in batches. It is useful for monitoring your flows, recording business events or centralizing in Datadog the activity of tools that do not integrate directly.

Datadog has no triggers in flooows: use it as an action inside flows started by other triggers.

Set up the connection

Authentication type: Custom credentials

  1. 1In Datadog open Organization Settings and, under API Keys, create or copy an API key.
  2. 2If you plan to use endpoints that require it, also create an Application Key under Application Keys.
  3. 3In flooows add a Datadog step and click "Connect".
  4. 4Paste the keys into "Datadog API key" and "Datadog App key", and pick your account region in "Site" (for example US1 or EU1).
Connection fieldTypeRequired
Datadog API keySecret keyYes
Datadog App key (required for some endpoints)Secret keyNo
SiteFixed listYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Send One log: type or map the "Message" and add "Service", "Hostname" and "DD Source" so you can filter later in Datadog.
  • Use "DD Tags" with key:value pairs (for example env:prod,flow:orders) to group logs.
  • "Additional Properties" lets you include structured data from the previous step, such as an order ID or amount.
  • Send Multiple logs: pass a list of entries in "Logs", handy after a loop or query.

Tips

  • •Add a Datadog step to error branches of your flows to spot failures quickly.
  • •Keep service names consistent so you can build dashboards and alerts in Datadog.
  • •For other Datadog APIs (metrics, events), use Custom API Call.

Actions (3)

Operations available as flow steps. Expand each one to see its fields.

Send Multiple logs1 fields
FieldTypeRequired
LogsJSONYes
Send One log6 fields
FieldTypeRequired
MessageTextYes
DD SourceTextNo
DD TagsTextNo
HostnameTextNo
ServiceTextNo
Additional PropertiesJSONNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

403 Forbidden

The API key is wrong or the "Site" does not match your account region.

Logs do not show up

Check time filters and indexes in Datadog and that service and tags are as expected.

Error on advanced endpoints

Add the Application Key to the connection.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps