How to debug AlertManager?

9.7k views Asked by At

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?

1

There are 1 answers

3
Marcelo Ávila de Oliveira On BEST ANSWER

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.