DEV

Datadog

Datadog Connection

Put Datadog to Work with @Human Automations and @Human Agents

The Datadog Connection documents all Triggers, Actions and Query Operations available for creating automations via the Datadog API.

What can you do with the Datadog Connection?

  • Connect to the Datadog API in a few clicks

  • Use the related Datadog Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Metric Alert

Triggers on: metrics/metric_alert

Triggered when a metric alert is fired in Datadog.

Event Created

Triggers on: events/event_created

Triggered when a new event is created in the Datadog event stream.

Monitor Alert

Triggers on: monitors/monitor_alert

Triggered when a monitor enters an alert state.

Monitor Recovery

Triggers on: monitors/monitor_recovery

Triggered when a monitor recovers from an alert or warning state.

Dashboard Created

Triggers on: dashboards/dashboard_created

Triggered when a new dashboard is created in Datadog.

Dashboard Updated

Triggers on: dashboards/dashboard_updated

Triggered when an existing dashboard is modified.

Downtime Started

Triggers on: downtimes/downtime_started

Triggered when a scheduled downtime period begins.

Downtime Ended

Triggers on: downtimes/downtime_ended

Triggered when a scheduled downtime period concludes.

Host Status Changed

Triggers on: hosts/host_status_changed

Triggered when the reporting status of a host changes.

Service Check Alert

Triggers on: service_checks/service_check_alert

Triggered when a service check results in an alert status.

Log Alert

Triggers on: logs/log_alert

Triggered when a log-based monitor alert is fired.

Synthetic Test Result

Triggers on: synthetics/synthetic_test_result

Triggered when a synthetic test provides a pass or fail result.

SLO Alert

Triggers on: slos/slo_alert

Triggered when a Service Level Objective alert is triggered.

User Created

Triggers on: users/user_created

Triggered when a new user is invited or created in the organization.

Organization Updated

Triggers on: organizations/organization_updated

Triggered when the organization settings or metadata are updated.

Example link

Action Operations

Action: New Metric Post

Action: API Request

Query Operations

Example link

Example link

Obtaining Access Credentials

To obtain a System-to-System Personal Access Token (PAT) for Datadog, follow these steps:

Prerequisites

  • A Datadog account with Admin or API Key management permissions.

  • Access to the Datadog UI (app.datadoghq.com).

Steps to Generate a PAT

  1. Log in to the Datadog UI.

  2. Navigate to: Organization SettingsAPI Keys (or directly visit: https://app.datadoghq.com/organization-settings/api-keys).

  3. Under the Personal Access Tokens section, click + New Personal Access Token.

  4. Provide:

    • Token Name (descriptive, e.g., system-to-system-integration).

    • Scopes (select required permissions, e.g., api_key_read, api_key_write, dashboards_read, etc.).

  5. Click Create Token.

  6. Copy the generated token immediately (it will not be shown again).

Done. Use this token for system-to-system authentication.

Configuring Webhooks

  1. Log in to your Datadog account.

  2. Navigate to IntegrationsIntegrations in the left-hand sidebar.

  3. Search for Webhooks in the search bar and click on the Webhooks tile.

  4. If the integration is not installed, click Install. If it is already installed, click Configure.

  5. Scroll down to the Webhooks section and click New Webhook.

  6. Provide a Name for the webhook (e.g., human-webhook).

  7. Enter the URL provided by your integration (e.g., https://your-endpoint.com/webhook).

  8. (Optional) Define a custom Payload or add Custom Headers if required.

  9. Click Save.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated