Skip to main content

Overview

Triggers are a way to make changes to your Statsig project from a 3rd party source. You can create a trigger with a specific action like “Disable a feature gate”. This will generate a URL that will perform that action when hit. Triggers can be used with Datadog to toggle a gate on or off depending on the performance of a metric. An example use case would be to create a trigger that disables a gate and hook it up to a Datadog monitor so that if metric regression is detected, you can automatically turn off the feature.

Trigger Types

Currently, the only supported type of triggers are gate triggers.

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 do not need to make any changes to the payload)
    Datadog webhook configuration screen
  3. Now within your Datadog monitor settings, you can add this webhook as a notification target.
    Datadog monitor notification settings
To learn more about how to configure a Datadog monitor, see Datadog Notifications.