Go to file
Fabian Reinartz dbd015ef29 Implement usage of deduping notifier 2015-09-27 20:17:09 +02:00
config Fix group and repeat interval differentiation 2015-09-26 18:03:54 +02:00
provider Implement in-memory notifies provider 2015-09-27 20:16:42 +02:00
scripts Fix compile issues 2015-09-26 11:14:18 +02:00
types Add notify and shared data source for providers 2015-09-27 19:50:24 +02:00
vendor Update vendoring, update .gitignore 2015-09-24 18:34:58 +02:00
version Add version file 2015-09-26 11:14:18 +02:00
.gitignore Update vendoring, update .gitignore 2015-09-24 18:34:58 +02:00
.travis.yml Make travis use go 1.5 2015-09-27 12:01:51 +02:00
AUTHORS.md Update AUTHORS 2015-05-11 09:41:26 +02:00
CHANGELOG.md Cut bugfix release 0.0.3. 2015-06-10 17:05:02 +02:00
CONTRIBUTING.md License cleanup. 2015-01-22 15:45:23 +01:00
LICENSE License cleanup. 2015-01-22 15:45:23 +01:00
Makefile Add Makefile and build script 2015-09-25 14:42:14 +02:00
NOTICE License cleanup. 2015-01-22 15:45:23 +01:00
README.md Add a generic webhook notifier. 2015-05-27 23:57:18 +01:00
api.go Add silence API endpoints 2015-09-27 14:07:04 +02:00
dispatch.go Add deduping notifier 2015-09-27 19:50:41 +02:00
inhibit.go Make inhibitor consider equality labels 2015-09-27 14:41:18 +02:00
main.go Implement usage of deduping notifier 2015-09-27 20:17:09 +02:00
notify.go Implement usage of deduping notifier 2015-09-27 20:17:09 +02:00
route.go Fix group and repeat interval differentiation 2015-09-26 18:03:54 +02:00
route_test.go Fix compile issues 2015-09-26 11:14:18 +02: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 (currently email, generic web hook, PagerDuty, HipChat, Slack, Pushover, or Flowdock)

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.