Datadog events Create

Datadog events Create

Certified

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.

yaml
type: io.kestra.plugin.datadog.events.Create

Mark the end of a pipeline run on the dashboards

yaml
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

Datadog API key

The organization API key. Use a Kestra secret, e.g. {{ secret('DATADOG_API_KEY') }}.

Event text

The body of the event. At most 4000 characters. Markdown is supported when the text starts with %%% and ends with %%%.

Event title

The title of the event. At most 500 characters.

Aggregation key

Groups events with the same key in the event stream. At most 100 characters.

Possible Values
ERRORWARNINGINFOSUCCESSUSER_UPDATERECOMMENDATIONSNAPSHOT

Alert type

How the event is shown. Datadog uses INFO when it is not set.

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).

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 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.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset 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.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

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

The host the event is about.

Possible Values
NORMALLOW

Priority

NORMAL or LOW. Datadog uses NORMAL when it is not set.

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.

Source type name

The source of the event, such as kestra, to pick its icon.

SubTypestring

Tags

Tags to attach, such as env: prod.

Event id

The id of the event in Datadog, when Datadog returns it.

Status

The status Datadog answers, ok when the event is accepted.

Event URL

The link to the event in Datadog, when Datadog returns it.