我的问题是我们是否可以使用 Prometheus 的警报部分在 Whatsapp 或某种即时消息中显示它们。
作为新手,非常感谢您。
似乎有很多项目可以连接 telegram,其中很多都是基于 docker 的,但无论如何,它们都不是那么容易设置的。举个例子吧
您询问“某种即时消息”。警报管理器没有针对 WhatsApp 的本机集成,但针对 Slack 即时消息平台有本机集成。
文档中的信息:https://prometheus.io/docs/alerting/latest/configuration/#slack_config
您可以编写一个小应用程序,用作 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