Send metrics and events to Datadog, and query monitors, from any Windmill script, flow or app.
Set up in 3 steps
Copy your keys
In Datadog, open Organization Settings then API Keys. The API key is enough to send metrics and events; an Application key is only needed to read back monitors and dashboards.
Add the resource in Windmill
Open Resources, add a resource of type datadog, and fill apiKey. Set apiBase if your account is not on the US site — https://api.datadoghq.eu for the EU.
Run your first script
Fork any script below and send a test event.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Resource type
datadog — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| apiBase | string | No | |
| apiKey | string | Yes | |
| appKey | string | Yes |
Questions
Do I need the application key?
Only for reading. Submitting metrics, events and logs needs the API key alone.
My calls return a 403
Usually the wrong site. Datadog is region-partitioned — set apiBase to your account's API host rather than the US default.
Is my key stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.