Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug AlertManager?

I have configured Alertmanager to send a mail everytime an alert is triggered. However for an unknow reason I'm not receiving any mail.

How can I debug this? Is there a log file stored somewhere?

like image 381
Mit94 Avatar asked Oct 28 '25 14:10

Mit94


1 Answers

How have you started the Alertmanager? The tool should show the warnings/errors in the terminal. You can start the Alertmanager redirecting the output to a log file like in the following example:

ALERTMANAGER-INSTALL-PATH/alertmanager >> ALERTMANAGER-LOG-PATH/alertmanager.log 2>&1 &

If you're running the Alertmanager inside a Docker container try to use the Docker logs.

like image 127
Marcelo Ávila de Oliveira Avatar answered Oct 30 '25 13:10

Marcelo Ávila de Oliveira