Configure alertmanager webhook url to include Hostname

63 views
Skip to first unread message

vidhun sudhakar

unread,
May 5, 2021, 10:28:46 AM5/5/21
to Prometheus Users
Hi,
I want to include the below Curl request to be converted as http url to be included in the alertmanager webhook url,

Older webhook url:
 webhook_configs: 
  - send_resolved: true
Older Curl command I used to test,
curl  -X POST -d @prom-alert.json http://localhost:3001/prometheustomyapp

Now, my app is running in aws kubernetes pods behind a aws LoadBalancer
So I had to modify the curl to include the host domain name , as belowsucceeds , notice 

curl -H "Host: mydomain.net" -X POST -d @prom-alert.json aws-region.elb.amazonaws.com/alertmanager 
How to include this "Host: mydomain.net" in the alertmanager webhook http url ?

Thanks
Vidhun



Reply all
Reply to author
Forward
0 new messages