What you need
- Access to
alertmanager.ymland permission to reload Alertmanager. - The Squasher CLI, signed in with write access to the project. See Alert sources.
Connect Alertmanager
1
Create the connector
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_alertsat0(no limit), so that Alertmanager does not drop alerts from a group. - An alert without a
fingerprint,labels, orstatusis rejected. The other alerts are still applied, and Squasher returns207. - 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.