The alertmanager testing!
https://github.com/prometheus/alertmanager Anybody explain nginx configuration as follow for me?
server {
server_name <your_current_alertmanager>; -->What should i write?
location / {
proxy_pass http://localhost:9093;
post_action @forward;
}
location @forward {
proxy_pass http://<your_new_alertmanager>:9093;-->What should i write?
}
}
What do you want to do?
I want to test send email by the alertmanager. @fabxc
Can you help me have a look at #330
Have a look at http://www.robustperception.io/adding-basic-auth-to-prometheus-with-nginx/ for an example of putting Prometheus behind nginx (you can do it similarly for Alertmanager and perhaps omit the basic auth).
Also have a look at http://www.robustperception.io/sending-email-with-the-alertmanager-via-gmail/ for a simple example of sending email with the Alertmanager.
Giving much more detailed nginx configuration advice is a bit out of scope for us here though.
It is worth noting that you don't need nginx if you're just testing (unless you're specifically trying to test out nginx, then of course you need it).
I assume that the articles linked above give enough of an explanation of how to get started, so I'm closing this issue for now.
Please reopen / open another one if you have more questions, or ideally, ask general questions on the mailing list or IRC (see https://prometheus.io/community/).