【问题标题】:Alert Manager SMS Notification警报管理器短信通知
【发布时间】:2019-04-16 13:20:23
【问题描述】:

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

【问题讨论】:

    标签: kubernetes sms webhooks prometheus prometheus-alertmanager


    【解决方案1】:

    来自官方文档的几个选项: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 发送器。

    【讨论】:

    • 我强烈推荐它,因为它不仅仅是短信路由器,它还为您提供待命时间表、待命等级等
    • 没关系,所有类型的部署都采用相同的方法
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多