Install Prometheus Alert Manager
Video Lecture
Description
Install the Prometheus Alert Manager
1 |
|
It has started a new service called prometheus-alertmanager
1 |
|
It is also managed by the user prometheus
1 |
|
Note that the service is running on port 9093
Visit http://[your domain name or ip]:9093/
Block Port 9093 for external requests
1 2 3 |
|
Warning
iptables settings will be lost in case of system reboot. You will need to reapply them manually,
or
install iptables-persistent
1 |
|
This will save your settings into two files called,
/etc/iptables/rules.v4
/etc/iptables/rules.v6
Any changes you make to the iptables configuration won't be auto saved to these persistent files, so if you want to update these files with any changes, then use the commands,
iptables-save > /etc/iptables/rules.v4
iptables-save > /etc/iptables/rules.v6
Check the endpoint in the prometheus.yml
is correctly set for the location of your Alertmanager.
1 |
|
Mine is set to the Alertmanager running locally on localhost:9093
1 2 3 4 5 6 7 |
|
You can optionally also add the Alertmanager metrics endpoint to be scraped by prometheus as well so that you can monitor its performance.
1 2 3 4 5 6 |
|