Step 1: create the alert source
- Go to Alerts in your incident.io dashboard and select the Sources tab.
- Press Create source, search for Prometheus Alertmanager, and continue.
- Give it a name.
alertmanager.yml snippet with your source’s URL and token already
filled in, and a Grouped alert notifications setting. Keep it open for the next step.
Step 2: connect Alertmanager
Add an incident.io receiver to youralertmanager.yml, copying the snippet from the setup page
tab that matches your Alertmanager version.
Native notifier (Alertmanager 0.29 and later):
alertmanager.yml
send_resolved: true, or alerts won’t resolve in incident.io:
alertmanager.yml
Choose how to handle grouped notifications
Alertmanager groups alerts by your route’sgroup_by labels. The Grouped alert notifications setting on the setup page decides
what incident.io does with each group:
- Apply Alertmanager’s grouping (recommended, and the default): one incident.io alert per group.
- Ignore Alertmanager’s grouping: one incident.io alert per individual alert.
How alerts behave
- Title and description. The alert title is the
alertnamelabel, and the description shows the annotations and labels. The alert links to the PrometheusgeneratorURL, or to a dashboard annotation when there isn’t one. - Deduplication. With grouping applied, notifications for the same group update one alert. With it ignored, each alert is matched by its label fingerprint. See why Alertmanager alerts might not appear.
- Resolution. A
resolvednotification resolves the alert. A group stays firing while any alert in it is still firing. - Attributes. Group labels and common labels are the best place to find a team or service.
Use these to set alert attributes, for example to map a
teamlabel to a team.
Step 3: check it works
Fire a test alert through Alertmanager, or wait for a Prometheus rule to fire. The alert should appear on the alert source page in incident.io within a few seconds. If nothing arrives, check Recent requests on that page. Every request Alertmanager sent is listed there, including any that were rejected, with the reason.Can’t find the alert source you are looking for? Head to our integrations page or message us at support@incident.io.