簡體   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