prometheus报警配置分类之alertmanager,多webhook地址配置
https://blog.csdn.net/weixin_43606975/article/details/125425543
示例:
global:
resolve_timeout: 5m
route:
receiver: webhook
group_wait: 30s
group_interval: 30s
repeat_interval: 1d
group_by: [alertname]
routes:
- receiver: webhook2
group_wait: 10s
match_re:
idc: Company
- receiver: webhook
match:
idc: Sz
receivers:
- name: webhook
webhook_configs:
- url: 'http://127.0.0.1:8999/webhook?key=17a774a2-4319-40da-b096-0926114c81e4'
send_resolved: true
- name: webhook2
webhook_configs:
- url: 'http://127.0.0.1:8998/webhook?key=fbb7b581-4807-4b7c-88f1-71cd84dad19e'
send_resolved: true