Skip to main content
A Datadog webhook sends each monitor notification to Squasher. A trigger opens an incident, and the recovery resolves the same incident.

What you need

  • A Datadog account that can create webhooks and edit monitors.
  • The Squasher CLI, signed in with write access to the project. See Alert sources.

Connect Datadog

1

Create the connector

Save setup.endpoint and setup.secret from the output.
2

Create a webhook in Datadog

In Datadog, open the Webhooks integration and add a webhook. Name it, for example squasher, and set the URL to setup.endpoint.
3

Add the secret as a custom header

4

Paste this payload

The words that start with $ are Datadog template variables. Keep the field names: Squasher reads these names.
5

Notify the webhook from your monitors

Add @webhook-squasher to the message of each monitor that should open Squasher incidents. Use the name you gave the webhook. Then trigger a test notification and let it recover.

How Squasher reads a notification

Without a Datadog link, Open in Datadog opens the monitor (from alert_id) or, without a monitor ID, an event search for the alert key, on app.datadoghq.com. Send $LINK so the link uses your Datadog site. When there is no severity and no known priority, Squasher uses the connector’s default severity. Squasher ignores fields that are not in this table.

Limits

  • The payload must have title, a transition, and alert_cycle_key or alert_id. Without them, Squasher returns 422, and Datadog does not retry.
  • If the recovery opens a second incident, check that the payload has $ALERT_CYCLE_KEY. Without it, Squasher uses $ALERT_ID.
  • Each request carries one notification.

Next steps

Alert sources

Limits, response codes, and secret rotation.

Route incidents

Send Datadog incidents to the people on call.