警报管理器短信通知

Alert Manager SMS Notification

我在 Kubernetes 集群上有一个 Prometheus 监控 运行。我想在警报触发时收到短信通知。 我应该如何设置我的号码以在 Alertmanager 中接收短信?

来自官方文档的几个选项:https://prometheus.io/docs/alerting/configuration/

选项 1。如果您有 PagerDuty / VictorOps 订阅,请使用 https://prometheus.io/docs/alerting/configuration/#pagerduty_config 接收器,并在服务内设置 SMS 规则。

选项 2. 使用 webhook 接收器 https://prometheus.io/docs/alerting/configuration/#webhook_config 将其设置为向 AWS SNS https://docs.aws.amazon.com/sns/latest/dg/sns-http-https-endpoint-as-subscriber.html 发送通知,然后使用 AWS SNS 发送短信。或者使用任何其他基于 webhook 的短信发送器。