我有一个自定义 webhook URL,我需要在 alertmanager 中配置相同的 URL 以获取警报通知。但是我的配置没有按预期工作。在警报管理器中出现以下错误,
level=error ts=2019-04-22T09:31:46.038681545Z caller=dispatch.go:279 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="cancelling notify retry for \"webhook\" due to unrecoverable error: unexpected status code 404 from http://example.com:9898/TrigerToSlack"
我的 Alertmanager 配置如下,
route:
group_by: ['job']
group_wait: 1s
group_interval: 5m
repeat_interval: 12h
receiver: webhook
routes:
- receiver: webhook
continue: true
receivers:
- name: webhook
webhook_configs:
- url: 'webhook URL'
send_resolved: true````