alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

The alertmanager testing!

Open guxia opened this issue 10 years ago • 5 comments

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?
    }
   }

guxia avatar Apr 28 '16 07:04 guxia

What do you want to do?

fabxc avatar Apr 28 '16 07:04 fabxc

I want to test send email by the alertmanager. @fabxc

Can you help me have a look at #330

guxia avatar Apr 28 '16 07:04 guxia

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.

juliusv avatar Apr 28 '16 09:04 juliusv

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).

mpchadwick avatar Apr 28 '16 10:04 mpchadwick

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/).

juliusv avatar Apr 28 '16 10:04 juliusv