您好,我正在尝试使用prometheus- alerts的webhooks向Zoom发送警报,但我一直收到错误
msg="Notify for alerts failed" num_alerts=1 err="cancelling notify retry for \"webhook\" due to unrecoverable error: unexpected status code 401这是我的配置
global:
resolve_timeout: 30m
route:
receiver: 'zoom'
routes:
- match:
severity: warning
continue: true
receiver: zoom
group_by: ['resource']
group_wait: 10s
group_interval: 5m
repeat_interval: 3h
receivers:
- name: 'zoom'
webhook_configs:
- url: 'https://inbots.zoom.us/incoming/hook/<SECRET>/'
http_config:
bearer_token: '<SECRET>'有人尝试过将Alertmanager与ZOOM一起使用吗?
发布于 2019-07-12 21:50:07
事实证明,Alert管理器正在以一种与Zoom期望的方式不同的方式格式化身份验证头。因此,解决方案是在它们之间运行一个中间件。简单的代理,它可以改变标题格式,如果你不关心消息在缩放聊天中的样子,但如果你关心格式化消息,将需要更复杂的东西。
https://stackoverflow.com/questions/56774455
复制相似问题