Datadog events Create
Certified
Post an event to the Datadog event stream
Datadog events Create
Post an event to the Datadog event stream
Creates an event, for example to mark a deployment or a pipeline run on the Datadog dashboards. Needs the API key only. Datadog accepts the event for processing and answers right away: it can take a moment before the event shows in the stream.
type: io.kestra.plugin.datadog.events.CreateExamples
Mark the end of a pipeline run on the dashboards
id: datadog_pipeline_event
namespace: company.observability
tasks:
- id: run_pipeline
type: io.kestra.plugin.core.log.Log
message: Loading the orders
- id: mark_run
type: io.kestra.plugin.datadog.events.Create
apiKey: "{{ secret('DATADOG_API_KEY') }}"
site: datadoghq.eu
title: "Orders pipeline finished"
text: "Execution {{ execution.id }} of {{ flow.id }} finished"
alertType: SUCCESS
tags:
- "env:prod"
- "flow:{{ flow.id }}"
- "source:kestra"
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-datadog --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
apiKey *string
Datadog API key
The organization API key. Use a Kestra secret, e.g. {{ secret('DATADOG_API_KEY') }}.
text *string
Event text
The body of the event. At most 4000 characters. Markdown is supported when the text starts with %%% and ends with %%%.
title *string
Event title
The title of the event. At most 500 characters.
aggregationKey string
Aggregation key
Groups events with the same key in the event stream. At most 100 characters.
alertType string
ERRORWARNINGINFOSUCCESSUSER_UPDATERECOMMENDATIONSNAPSHOTAlert type
How the event is shown. Datadog uses INFO when it is not set.
apiUrl string
API base URL
Replaces https://api.<site> when set, for a proxy, a private link or a test server. Leave it empty for the public API. logs.Send does not use it: it calls the log intake, which has its own address (intakeUrl).
appKey string
Datadog application key
An application key. Datadog asks for it on every call that reads data or manages monitors and downtimes, so the tasks that only send data (events.Create, metrics.Submit, logs.Send) work without it. Create it with the scopes the task needs. Use a Kestra secret, e.g. {{ secret('DATADOG_APP_KEY') }}.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150dateHappened string
Time of the event
When the event happened, an ISO-8601 instant such as 2026-01-01T00: 00: 00Z. Datadog uses the time it receives the event when it is not set.
host string
Host
The host the event is about.
priority string
NORMALLOWPriority
NORMAL or LOW. Datadog uses NORMAL when it is not set.
site string
Datadog site
The Datadog site of the organization, the domain you see in the Datadog URL: datadoghq.com (US1, the default), us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com or ddog-gov.com. A key only works on the site of the organization that created it.
sourceTypeName string
Source type name
The source of the event, such as kestra, to pick its icon.
Outputs
eventId string
Event id
The id of the event in Datadog, when Datadog returns it.
status string
Status
The status Datadog answers, ok when the event is accepted.
url string
Event URL
The link to the event in Datadog, when Datadog returns it.