Open GeluConstantin opened 9 months ago
I'm not sure if this is the same issue, but with alertmanager 0.26.0, the following in alertmanager yaml
receivers:
name: ms_teams_receiver webhook_configs:
produces the following on the alertmanager status page...
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?
I noticed that masking the url value with
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
GET /alertmanager HTTP/1.1 Host: localhost:2000 User-Agent: curl/7.61.1 Accept: /
< HTTP/1.1 404 Not Found < Content-Type: application/json; charset=UTF-8 < Date: Wed, 10 Jan 2024 21:23:38 GMT < Content-Length: 24 < {"message":"Not Found"}
vs behavior with alertmanager 0.19.0
$ curl -v localhost:2000/alertmanager
GET /alertmanager HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Host: localhost:2000 Accept: /
< HTTP/1.1 405 Method Not Allowed < Content-Type: text/plain; charset=utf-8 < X-Content-Type-Options: nosniff < Date: Wed, 10 Jan 2024 21:32:21 GMT < Content-Length: 69 < Invalid request method: GET, this handler only accepts POST requests
Oops, disregard the tcp 2000 curl discussion, since that's related to behavior of the actual prometheus-msteams receiver binary
**Configured alertmanager.yml
route: receiver: 'email' group_by: ['alertname'] group_wait: 30s group_interval: 5m repeat_interval: 3h routes:
match: service: fme-server receiver: 'custom-email'
match: service: fme-server receiver: 'webhook2'
- match:
service: fme-server
receiver: 'email'
- match:
service: node-exporter
receiver: 'email'
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
System information:
insert output of
uname -srm
hereAlertmanager version:
insert output of
alertmanager --version
here (repeat for each alertmanager version in your cluster, if relevant to the issue)Prometheus version:
insert output of
prometheus --version
here (repeat for each prometheus version in your cluster, if relevant to the issue)Alertmanager configuration file:
Prometheus configuration file:
Logs: