-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL alermanager webhook not loaded from alertmanager-yml #3630
Comments
I'm not sure if this is the same issue, but with alertmanager 0.26.0, the following in alertmanager yaml receivers:
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 was added in #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
< HTTP/1.1 404 Not Found
vs behavior with alertmanager 0.19.0 $ curl -v localhost:2000/alertmanager
< HTTP/1.1 405 Method Not Allowed
|
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'
receivers:
webhook_configs:
http_config: {}
url: 'http://localhost:8031/api/monitoring-alerts'
max_alerts: 5
**
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 alertmanagerversion in your cluster, if relevant to the issue)
Prometheus version:
insert output of
prometheus --version
here (repeat for each prometheusversion in your cluster, if relevant to the issue)
Alertmanager configuration file:
The text was updated successfully, but these errors were encountered: