On this page

Datadog Triggers

Configure Datadog triggers in Statsig to react to Datadog monitor events with automated rollback, killswitch, or notification actions on feature flags.

How Datadog triggers work

Triggers let you make changes to your Statsig project from a third-party source. You can create a trigger with a specific action, such as "Disable a feature gate," and Statsig generates a URL that performs that action when called.

You can use triggers with Datadog to toggle a gate on or off based on metric performance. For example, create a trigger that disables a gate and connect it to a Datadog monitor so Statsig automatically disables the feature if it detects a metric regression.

Trigger types

The provider supports gate triggers only.

Creating a trigger

  1. On Statsig console, navigate to the integrations tab.
  2. Find and open Datadog -> Triggers.
  3. Specify the target gate and action, then click Create

    Statsig trigger configuration interface

Connecting to Datadog

  1. Copy the trigger URL generated from the previous step.
  2. In Datadog, create a new Webhook using that URL. You don't need to change the payload.

    Datadog webhook configuration screen

  3. In your Datadog monitor settings, add this webhook as a notification target.

    Datadog monitor notification settings

To configure a Datadog monitor, refer to Datadog Notifications.

Was this helpful?