繁体   English   中英

在Prometheus Alertmanager上设置MicrosoftTeams通知

[英]Set MicrosoftTeams notification on Prometheus Alertmanager

我尝试为Prometheus Alertmanager设置Microsoft Teams通知,但通知未到达。

alertmanager.yaml文件是:

global:
resolve_timeout: 5m
  http_config: {}
  smtp_hello: localhost
  smtp_require_tls: true
  pagerduty_url: https://events.pagerduty.com/v2/enqueue
  hipchat_api_url: https://api.hipchat.com/
  opsgenie_api_url: https://api.opsgenie.com/
  wechat_api_url: https://qyapi.weixin.qq.com/cgi-bin/
  victorops_api_url: https://alert.victorops.com/integrations/generic/20131114/alert/
route:
  receiver: teams
  group_by:
  - alertname
  routes:
  - receiver: teams
    match:
      alertname: QuotaCPUSolrExcedeed
receivers:
- name: teams
  webhook_configs:
  - send_resolved: true
    http_config: {}
    url: https://outlook.office.com/webhook/xxx
templates: []

规则'QuotaCPUSolrExcedeed'存在并适用于普罗米修斯。

如果我把webhook_url放在Grafana上,通知就会到来,但是如果我使用alertmanager,不行!

你知道问题可能是什么吗?

Prometheus AlertManager Web挂钩是通用的 为了将消息转换为MS团队接受的格式,您需要使用侧车。 其中一个选项prom2teams ,正如官方文档中所描述的那样。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM