Event Target for Datadog

This event target receives CloudEvents and sends it to Datadog.

Prerequisites

  1. Datadog API token

Consult the Secrets guide for more information about how to add the Datadog API token as a secret.

Deploying an Instance of the Target

Open the Bridge creation screen and add a Target of type Datadog.

Adding a Datadog Target

In the Target creation form, provide a name to the event Target, and add the following information:

  • API Key: Reference to a TriggerMesh secret containing the Datadog API key from above
  • Metric Name Prefix: Optional prefix to prepend to the metrics being sent

Datadog Target form

After clicking the Save button, the console will self-navigate to the Bridge editor. Proceed by adding the remaining components to the Bridge.

Bridge overview

After submitting the bridge, and allowing some configuration time, a green check mark on the main Bridges page indicates that the bridge with a Datadog event Target was successfully created.

Bridge status

For more information, please consult the Datadog Documentation

Event Types

A Datadog event Target accepts the following CloudEvent types:

io.triggermesh.datadog.event

Events of this type are alert metrics to be published to Datadog.

This type expects a JSON payload with the following properties:

Name Type Comment
displayName string Denote name for the metric
value float64 Numeric value of the metric
resourceGroup string The resource owning this type of metric
timestamp timestamp The timestamp of when the event occurred
alertType string The event type as expected by Datadog: info, error, warning, success
textData string Human readable description of the event

This event type does not return an event.

io.triggermesh.datadog.metric

Events of this type consist of a singular metric to be published to Datadog.

This type expects a JSON payload with the following properties:

Name Type Comment
displayName string Denote name for the metric
value float64 Numeric value of the metric
resourceGroup string The resource owning this type of metric
metricType string The type of metric

The metricType can be one of: distribution, gauge, or histogram.

This event type does not return an event.

io.triggermesh.datadog.metric.aggregated

Events of this type consist of an array of metrics to be published to Datadog.

This type expects a JSON payload with the following properties:

Name Type Comment
data io.triggermesh.datadog.metric[] Array of multiple metrics matching the JSON payload of io.triggermesh.datadog.metric

This event type does not return an event.