Connect Prometheus Alertmanager to Amonit
Amonit team · Updated
Short answer: add a webhook_configs receiver with your Amonit integration URL to alertmanager.yml, keep send_resolved: true, and route the alerts that should page someone to it.
1. Create the integration
In your Amonit instance (yourteam.amonit.dev), an admin opens Integrations → Add Integration, picks the type Alertmanager and a team, and saves. The integration’s page then shows the webhook URL and a Send test alert button.
The URL contains the integration’s token, so treat it like a password. If it leaks, regenerate the token on the same page: the old URL stops working from the next request.
The team needs an escalation policy, or nobody on a rota is paged. In that case, Amonit emails the admins and notes it on the alert’s timeline.
2. Add the receiver
receivers:
- name: amonit
webhook_configs:
- url: "https://yourteam.amonit.dev/api/v1/integrations/<token>/events"
send_resolved: true
send_resolved: true lets Amonit close the alert and stop the escalation when Alertmanager reports it resolved.
To keep the token out of URLs and logs, use the token-less URL with a bearer token:
receivers:
- name: amonit
webhook_configs:
- url: "https://yourteam.amonit.dev/api/v1/integrations/events"
send_resolved: true
http_config:
authorization:
credentials: "<token>"
3. Route alerts to it
Send everything to Amonit with route: { receiver: amonit }, or only critical alerts:
route:
receiver: default # your existing receiver
routes:
- matchers:
- severity="critical"
receiver: amonit
continue: true # go on to the next route below
- receiver: default # without this route, critical alerts skip your default receiver
Keep the last route if you want critical alerts in both places. continue: true only moves on to the next sibling route, and a parent’s receiver is used only when no child route matches (Alertmanager source).
We checked this config as YAML and against Alertmanager’s docs and source, but haven’t run it through amtool. Run amtool check-config alertmanager.yml before you reload.
Reload Alertmanager with curl -X POST http://localhost:9093/-/reload, or restart it.
4. Test it
Press Send test alert, or fire one through Alertmanager. It notifies real people.
amtool alert add alertname=PhoneCallTest severity=critical \
--annotation=summary="Testing the phone call path" \
--alertmanager.url=http://localhost:9093
The alert appears after Alertmanager’s group_wait, which is 30 seconds by default.
What Amonit does with the payload
| Alertmanager field | In Amonit |
|---|---|
fingerprint |
deduplication key, or a hash of the labels if it’s missing |
labels.severity |
priority: critical → P1, error or high → P2, warning → P3, info → P5, anything else → P3 |
labels.alertname + annotations.summary |
alert message (description if there’s no summary; alertname on instance if there’s neither) |
labels, annotations |
shown on the alert page |
generatorURL |
link on the alert page |
status: resolved |
closes the alert and stops the escalation |
Each alert in an Alertmanager group becomes its own Amonit alert.
Responses
| Code | Meaning |
|---|---|
200 |
Accepted, with counts: {"data": {"triggered": 2, "resolved": 1, "ignored": 0}} |
401 |
Token missing or unknown |
403 |
The integration is set to inactive |
422 |
Amonit didn’t understand the payload, and nothing was created |
429 |
More than 60 requests a minute for this token, see Retry-After |
See how alerts reach people for schedules, escalation and what a call sounds like.
Checked against the product and the tool’s documentation on 7 November 2026. Corrections: [email protected].