Skip to main content
An Alertmanager webhook receiver sends grouped Prometheus alerts to Squasher. Each alert in a group opens its own incident, and the same incident resolves when the alert resolves.

What you need

  • Access to alertmanager.yml and permission to reload Alertmanager.
  • The Squasher CLI, signed in with write access to the project. See Alert sources.

Connect Alertmanager

1

Create the connector

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

Add a receiver

Add a receiver with the endpoint and the secret, and send alerts to it. Keep send_resolved: true, so that incidents resolve.
alertmanager.yml
credentials_file keeps the secret out of the config. To send only some alerts, put the receiver on a child route with matchers.
3

Check and reload the config

4

Test with a real alert

Let a Prometheus alert fire and resolve. Check that one incident opens in Incidents and that the same incident resolves.

How Squasher reads a notification

Squasher builds the event key from the fingerprint, the status, the time, the labels, and the annotations. Alertmanager repeats a firing alert at each repeat_interval; Squasher applies a repeat with the same content once.

Limits

  • Squasher sees only the alerts in the request. Leave max_alerts at 0 (no limit), so that Alertmanager does not drop alerts from a group.
  • An alert without a fingerprint, labels, or status is rejected. The other alerts are still applied, and Squasher returns 207.
  • Squasher reads at most 1,000 alerts from one request.

Next steps

Alert sources

Limits, response codes, and secret rotation.

Route incidents

Send Prometheus incidents to the people on call.