是否可以在 Whatsapp 或 Telegram 等即时消息中使用 Prometheus 警报?

问题描述 投票:0回答:4

我的问题是我们是否可以使用 Prometheus 的警报部分在 Whatsapp 或某种即时消息中显示它们。

作为新手,非常感谢您。

prometheus whatsapp prometheus-alertmanager instant-messaging exporter
4个回答
1
投票

似乎有很多项目可以连接 telegram,其中很多都是基于 docker 的,但无论如何,它们都不是那么容易设置的。举个例子吧

https://github.com/metalmatze/alertmanager-bot


1
投票

Telegram 支持刚刚进入警报管理器本身。配置部分已经记录


0
投票

您询问“某种即时消息”。警报管理器没有针对 WhatsApp 的本机集成,但针对 Slack 即时消息平台有本机集成。

文档中的信息:https://prometheus.io/docs/alerting/latest/configuration/#slack_config


0
投票

您可以编写一个小应用程序,用作 Prometheus/Alertmanager 和一些 WhatsApp API 提供商(例如 Infobip、Twillio、Sinch、Vonage 等)之间的中间件。

Alertmanager 允许配置通用接收器: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config

因此,您可以使用它向中间件应用程序发送带有警报的 HTTP Post 请求,您可以在应用程序中接收警报,然后通过第 3 方 WhatsApp API 提供商将警报文本发送到手机。

这是一个教程:https://www.infobip.com/docs/tutorials/integrate-prometheus-with-infobip-whatsapp-api

© www.soinside.com 2019 - 2024. All rights reserved.