将Prometheus-Alertmanager与Zoom通过传入的webhook连接



您好,我试图使用Prometheus-Alertmanager的Webhooks开始发送警报到Zoom,但是我一直在遇到错误

msg="Notify for alerts failed" num_alerts=1 err="cancelling notify retry for "webhook" due to unrecoverable error: unexpected status code 401

这是我的config

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>'

是否有人尝试过使用Zoom使用AlertManager?

事实证明,警报管理器正在以不同于一个变焦期望的方式格式化身份验证标头。因此,解决方案是在它们之间运行中间件。简单的代理,如果您不关心Zooms聊天中的消息的外观,则更改标头格式的代理应该可以工作,但是如果您关心格式化消息,则需要更复杂的内容。

最新更新