Go to file
Joshua Barratt 55587b8722 Update sample config to include opsgenie example 2015-09-17 13:58:11 -07:00
config Update sample config to include opsgenie example 2015-09-17 13:58:11 -07:00
manager Linkify alert rows. 2015-09-08 16:44:11 +02:00
web Update compiled web assets. 2015-09-09 17:19:25 +02:00
.dockerignore we do not need the deps around after the executable is created 2015-04-10 14:47:36 -05:00
.gitignore Add simple support for Slack notifications 2015-05-10 22:21:18 +02:00
.travis.yml Add travis CI support 2015-04-17 18:28:07 -04:00
AUTHORS.md Update AUTHORS 2015-05-11 09:41:26 +02:00
CHANGELOG.md Cut Alertmanager release 0.0.4 2015-09-09 16:09:34 +02:00
CONTRIBUTING.md License cleanup. 2015-01-22 15:45:23 +01:00
Dockerfile New Dockerfile using alpine-golang-make-onbuild base image 2015-07-09 08:56:45 +02:00
LICENSE License cleanup. 2015-01-22 15:45:23 +01:00
Makefile Cut Alertmanager release 0.0.4 2015-09-09 16:09:34 +02:00
Makefile.COMMON Update Makefile.COMMON from prometheus/utils 2015-07-09 08:56:45 +02:00
NOTICE License cleanup. 2015-01-22 15:45:23 +01:00
README.md Add OpsGenie to README.md and reformat the list. 2015-07-30 14:23:50 +02:00
build_info.go Fix version info string. 2015-09-04 11:54:40 -07:00
main.go Add web.external-url flag 2015-07-24 15:34:10 +10:00

README.md

Alertmanager

Prometheus Alertmanager

WARNING: The Alertmanager is still very experimental and early in its development and design. More than any other Prometheus component, it will still undergo frequent breaking changes, including ones that will affect its architecture as a whole. While we do plan on making it mature and stable eventually, use it at your own risk for now.

Alertmanager receives alerts generated by Prometheus and takes care of the following aspects:

  • manual silencing of specific alerts
  • inhibiting alerts based on alert dependencies
  • aggregating alerts by labelset
  • handling notification repeats
  • sending alert notifications via external services:

Note: Amazon SNS notifications depend on your Amazon credentials being configured as described here.

See config/fixtures/sample.conf.input for an example config. The full configuration schema including a documentation for all possible options can be found in config/config.proto. Alertmanager automatically reloads the configuration when it changes, so restarts are not required for configuration updates.

Building and running

make
./alertmanager -config.file=/path/to/alertmanager.conf

Configuring Prometheus to send alerts

To make Prometheus send alerts to your Alertmanager, set the alertmanager.url command-line flag on the server:

./prometheus -alertmanager.url=http://<alertmanager-host>:<port> <...other flags...>

Prometheus only pushes firing alerts to Alertmanager. Alertmanager expects to receive regular pushes of firing alerts from Prometheus. Alerts which are not refreshed for a period of -alerts.min-refresh-period (5 minutes by default) are expired.

Alertmanager only shows alerts which are currently firing and pushed to Alertmanager.

Running tests

Build Status

make test

Caveats and roadmap

Alertmanager is still in an experimental state. Some of the known caveats which are going to be addressed in the future:

  • Alertmanager is run as a single instance and does not provide high availability yet. We plan on clustering multiple replicated Alertmanager instances to ensure reliability in the future.
  • Relatedly, silence information is currently only persisted locally in a file and lost if you lose the machine your Alertmanager is running on.
  • Alert aggregation needs to become more flexible. Currently alerts are aggregated based on their full labelsets. In the future, we want to allow grouping alerts based on a subset thereof (for example, grouping all alerts with one alert name and from the same job together).
  • For alert dependencies, we want to support time delays: if alert A inhibits alert B due to a dependency and B begins firing before A, wait for a configurable amount of time for A to start firing as well before sending notifications for B. This is not yet supported.
  • Alertmanager has not been tested or optimized for high alert loads yet.

Using Docker

You can deploy the Alertmanager using the prom/alertmanager Docker image.

For example:

docker pull prom/alertmanager

docker run -d -p 9093:9093 -v $PWD/alertmanager.conf:/alertmanager.conf \
        prom/alertmanager -config.file=/alertmanager.conf