How to override global http proxy setting

21 views
Skip to first unread message

林浩

unread,
Apr 29, 2020, 4:43:06 AM4/29/20
to Prometheus Users
Hello,


I have global proxy_url setting which was required to send multiple pager & slack channel receivers (10 +)

    global:
      smtp_smarthost: 'xxx.xxx.com:25'
      smtp_from: 'alertmanager@xxxorg'
      http_config:
        proxy_url: http://httpproxy.vip.xxx.com

I also want to setup a generic web hook, this webhook need  to by pass (ignore)  global proxy_url setting, it means no proxy should be there for webhook.
 is there any way to override a global setting?  

    receivers:
    - name: 'webhook'
      webhook_configs:
      - send_resolved: true

I have tried to add below setting to webhook receivers, but it seems to doesn't work.

      http_config:
        proxy_url: ""


Thanks for the help~

Julien Pivotto

unread,
Apr 29, 2020, 4:54:08 AM4/29/20
to 林浩, Prometheus Users
Hi,

If you are in such a particular setup, you can't use global proxy, you
will need to set it on every receiver but the ones requiring direct
internet access.

Regards
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/afce54af-64f5-484a-9338-57a15f0eb690%40googlegroups.com.


--
(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu
signature.asc

林浩

unread,
Apr 29, 2020, 8:50:41 AM4/29/20
to Prometheus Users
Julien,
 
It is very headache for me to set up proxy for each receiver.  
said I have 20 receivers, 19 need internet access, but only one should not have. so I have to set up 19 same proxy settings in the configuration file.


在 2020年4月29日星期三 UTC+8下午4:54:08,Julien Pivotto写道:
> To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages