# Datadog Triggers

### 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, then connect the trigger to a Datadog monitor. Statsig disables the feature automatically when the monitor detects a metric regression.

### Trigger types

The provider supports gate triggers only.

### Creating a trigger

1. On Statsig console, navigate to the [integrations](https://console.statsig.com/integrations) tab.
2. Find and open **Datadog** -> **Triggers**.
3. Specify the target gate and action, then click **Create**.
   {% figure %}
   ![Statsig trigger configuration interface](https://docs.statsig.com/images/integrations/triggers/datadog/216156433-a41461d7-349b-446a-a089-610e57917824.png)
   {% /figure %}

### Connecting to Datadog

1. Copy the trigger URL generated from the previous step.
2. In Datadog, create a new [Webhook](https://app.datadoghq.com/integrations/webhooks) using that URL. You don't need to change the payload.
   {% figure %}
   ![Datadog webhook configuration screen](https://docs.statsig.com/images/integrations/triggers/datadog/216156415-2b170a22-71ea-48af-9db9-dc3f76a357a4.png)
   {% /figure %}
3. In your Datadog monitor settings, add this webhook as a notification target.
   {% figure %}
   ![Datadog monitor notification settings](https://docs.statsig.com/images/integrations/triggers/datadog/216156425-8dd57f92-aa64-4a55-8bd4-4737a8e6818e.png)
   {% /figure %}

To configure a Datadog monitor, refer to [Datadog Notifications](https://docs.datadoghq.com/monitors/notify/).
