prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.57k stars 2.14k forks source link

URL alermanager webhook not loaded from alertmanager-yml #3630

Open GeluConstantin opened 9 months ago

GeluConstantin commented 9 months ago

**Configured alertmanager.yml

route: receiver: 'email' group_by: ['alertname'] group_wait: 30s group_interval: 5m repeat_interval: 3h routes:

receivers:

**

Correct configured Webhook, like in Grafa UI

What did you see instead? Under which circumstances? All other parameters are loaded but not the URL

**

Environment

slvr32 commented 8 months ago

I'm not sure if this is the same issue, but with alertmanager 0.26.0, the following in alertmanager yaml

receivers:

whereas the same yaml with a much older alertmanager ( 0.19.0 ), shows the expected configuration on the alertmanager status page

receivers:

at a glance, it looks like the http_config: {} is being ignored, and the url value is being turned into a 'secret' value?

slvr32 commented 8 months ago

I noticed that masking the url value with was added in https://github.com/prometheus/alertmanager/pull/3228

The interesting other details is that attempting a curl against one of the 'secret' webhook URLs results in 404, whereas the older ( 0.19.0 ) alertmanager reports that it expects a POST to a particular webhook URL

$ curl -v localhost:2000/alertmanager

vs behavior with alertmanager 0.19.0

$ curl -v localhost:2000/alertmanager

slvr32 commented 8 months ago

Oops, disregard the tcp 2000 curl discussion, since that's related to behavior of the actual prometheus-msteams receiver binary