Thanks Sayf .

That solution worked by adding the reference of proxy.conf inside the 
alertmanager.service. but still notification are not going to slack. 

Able to see the data output on alertmanager "
http://localhost:9093/api/v1/alerts"; when instance was shutdown but still 
notification not getting fwd to slack.  Below is config output where it has 
loaded the alertmanager.yml and picked the slack channel name but didn't 
send the alert.  Any idea ? 
thanks
pravin

On Monday, May 11, 2020 at 10:24:40 PM UTC+1, Pravin S wrote:
>
> Hi
>
> Please can anyone suggest how to add the environment variable of 
> http_proxy as i am facing issues with sending alert notifications to 
> slack.  
>
> I am able to see the alert coming Prometheus alert manager : local 
> host:9093/#/alerts but they are not getting forwarded to slack due to 
> firewall issues so had to use the proxy. I manually tried to export the 
> proxy variables at OS level but they kind of  worked if I try the manual 
> curl -X post command to send the alerts to slack but somehow alert manager 
> not picking up the setting at os level so have to define it somewhere 
> inside the yaml file to pick it up not sure if its going to prometheus or 
> alertmanager.yml file. 
>
>
> Please can anyone suggest and advise of the exact syntax and correct yml 
> file where this can be defined. I am not using the docker container rather 
> doing on standalone linux machine but getting stuck at corporate firewall 
> network .
>
> thanks
> pravin
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/93ee1cee-ba20-49fd-a07a-65d599fcacd1%40googlegroups.com.

Reply via email to