Prometheus alertmanager: Difference between revisions
From wikinotes
Line 37: | Line 37: | ||
== AlertManager == | == AlertManager == | ||
<blockquote> | <blockquote> | ||
AlertManager can issue notifications using various methods. | |||
* SMTP | |||
* slack | |||
* victorops | |||
* wechat | |||
* http | |||
<syntaxhighlight lang="yaml"> | |||
# /usr/local/etc/alertmanager/alertmanager.yml | |||
</syntaxhighlight> | |||
</blockquote><!-- AlertManager --> | </blockquote><!-- AlertManager --> | ||
Revision as of 03:51, 18 February 2022
Alertmanager is the official service prometheus communicates with to issue alerts.
Documentation
repo https://github.com/prometheus/alertmanager official docs https://prometheus.io/docs/alerting/latest/configuration/ sample config https://github.com/prometheus/alertmanager#example
Locations
9093
default port that receives alerts
Install
pkg install alertmanager # FreeBSD pacman -S alertmanager # ArchlinuxYou'll also need to enable/start the service.
Configuration
AlertManager
AlertManager can issue notifications using various methods.
- SMTP
- slack
- victorops
- http
# /usr/local/etc/alertmanager/alertmanager.yml
Prometheus
# /usr/local/etc/prometheus.yml alerting: alertmanagers: - static_configs: - targets: ['localhost:9093']
Usage
amtool check-config alertmanager.yml # validate an alertmanager config