talira

Prometheus Alertmanager

Handles alerts sent by Prometheus and other clients: deduplicates, groups and routes them to receivers

open sourceApache-2.0self-hostablefree

Alertmanager is the Prometheus project's alert handler: Prometheus and other clients send it alerts, and it deduplicates, groups and routes them through a tree of label matchers to receivers such as email, Slack, PagerDuty, Opsgenie, Microsoft Teams, Telegram or any webhook. It also silences alerts for a set time, inhibits alerts while related ones are firing and mutes or activates routes on time intervals. Several instances form a highly available cluster that replicates silences and notification state, and amtool, its command-line client, queries alerts, manages silences and tests routing. It is Apache-2.0 and part of Prometheus, a CNCF project.

Ways to install

Problems it solves

  • one database outage fired 300 separate alerts and buried the on-call engineer's phone
  • send critical alerts to the pager and warnings to a Slack channel based on labels
  • route each team's Prometheus alerts to that team's own email or chat channel
  • mute alerts for a server while we do planned maintenance on it
  • stop every downstream service from alerting when the network switch they depend on is down
  • group alerts from the same cluster into one notification instead of one message per pod
  • only page people during business hours for non-critical alerts
  • forward Prometheus alerts to PagerDuty or Opsgenie for escalation
  • post alert notifications to Microsoft Teams, Discord or Telegram
  • send firing alerts to my own HTTP endpoint as JSON to trigger automation
  • two Prometheus servers both fire the same alert and we get notified twice
  • keep alert notifications working if one alerting server goes down
  • test which receiver an alert with these labels would go to before changing the config
  • silence a noisy alert from the command line in a script
  • re-send a reminder every few hours while an alert is still firing

View all 16 problems

Features

  • deduplicates and groups alerts into single notifications
  • routing tree with label matchers, group_wait, group_interval and repeat_interval
  • receivers for email, Slack, PagerDuty, Opsgenie, Microsoft Teams, Discord, Mattermost, Telegram, Pushover, Webex, Rocket.Chat, Jira, incident.io, VictorOps, Amazon SNS, WeChat and webhooks
  • silences that mute alerts for a set time, managed in the web UI or amtool
  • inhibition rules that suppress alerts while other alerts are firing
  • mute and active time intervals on routes
  • notification templates
  • high availability cluster that replicates silences and notification state between peers
  • amtool CLI to query alerts, manage silences, render templates and test routes
  • HTTP API v2 described by an OpenAPI specification

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what Prometheus Alertmanager does.

  1. Nightingale Open-source alerting for your existing stack
  2. Grafana The open and composable observability and data visualization platform
  3. Checkmk Infrastructure and application monitoring with more than 2,000 integrations, self-hosted or as SaaS

Compare Prometheus Alertmanager with the top 3