【发布时间】:2019-04-16 13:20:23
【问题描述】:
我在Kubernetes 集群上运行了一个Prometheus 监控。我想在我的警报触发时收到短信通知。
Alertmanager中接收短信的号码应该如何设置?
【问题讨论】:
标签: kubernetes sms webhooks prometheus prometheus-alertmanager
我在Kubernetes 集群上运行了一个Prometheus 监控。我想在我的警报触发时收到短信通知。
Alertmanager中接收短信的号码应该如何设置?
【问题讨论】:
标签: kubernetes sms webhooks prometheus 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 发送 SMS。或者使用任何其他基于 webhook 的 SMS 发送器。
【讨论】: