Alertmanager handles alarms sent by customer applications, for example, the Prometheus worker. It deals with deduplicating, gathering, and directing them to the right collector incorporation, for example, email, PagerDuty, or OpsGenie. It likewise deals with hushing and hindrance of alarms.
In this post, We will install and configure Alertmanager on ubuntu 18.04 LTS
I believe you have already installed running promethus server if not So use the given url to install prometheus.
https://www.techbeginner.in/2020/12/how-to-install-prometheus-on-ubuntu.html
You need to update the ubuntu repository by using the following command.
sudo apt-get update
Execute the given command to add the prometheus’s alertmanager repository.
wget https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg | apt-key add -
We are ready to install the alertmanager by using the given commands.
sudo apt-get update
sudo apt-get install prometheus-alertmanager -y
After this you can verify the Alertmanager service status by using the following commands.
To get the service status.
sudo systemctl status prometheus-alertmanager
To start the service status.
sudo systemctl start prometheus-alertmanager
To restart the service status.
sudo systemctl restart prometheus-alertmanager
On boot auto start the service.
sudo systemctl enable prometheus-alertmanager
On boot stop the service.
sudo systemctl disable prometheus-alertmanager
Conclusion
We have successfully installed Alertmanager in our Ubuntu 18.04 server.