
Configuring receivers in Alertmanager
A minimal Alertmanager configuration forwards alerts to a receiver namedinfra-pager like this:
receivers list may contain multiple receivers. Each receiver defines one or more notifier blocks (for example slack_configs, email_configs, victorops_configs, etc.). The precise fields required depend on the notifier; consult the notifier documentation when in doubt.
Common notifier examples and the typical fields they require:
If multiple receivers use the same secrets (API keys, SMTP credentials, etc.), move shared values into the
global section to avoid duplication and simplify maintenance.global:
Never commit API keys, passwords, or other secrets in plaintext to public repositories. Use secret management tools or environment injection when deploying Alertmanager configuration.
Templating the notification content
Alertmanager uses Go templates to format notification content. Templates can access the alert group and individual alert metadata, letting you create concise, informative messages targeted to each notifier. Common template fields:
Always present templates inside fenced code blocks. Example Slack notifier with a custom title and message body:
titleuses{{ .GroupLabels.severity }}and{{ .GroupLabels.region }}to surface grouped label values (for example:critical alerts in region west).textuses thelenfunction to show the number of alerts andrange .Alertsto iterate through every alert, printing thedescriptionannotation for each.
> for readability while preserving the final output format.
Grouping alerts
Alert grouping is controlled by theroute configuration. Grouping determines which alerts are merged into a single notification.
Example: group alerts by severity and region:
severity=warning and region=us-west) are bundled into a single notification. Different label combinations produce separate notifications (for example, severity=warning, region=us-west and severity=critical, region=us-east become two notifications).
Grouping behavior examples:

Inspecting alerts in the Alertmanager UI
The Alertmanager UI lets you expand groups to view individual alerts, inspect labels, and follow links to the source Prometheus expressions that triggered them. Click the “Source” button to navigate to the Prometheus expression. Example alerting rule expression:region="east" severity="critical"). A typical alert label set might look like:
ExternalURL links in notifications to quickly jump from an alert to the Prometheus graph or rule that generated it, speeding up triage and remediation.
Further reading and references