【问题标题】:how to get alerts count ,how many times the alerts fired for last one week in prometheus如何获取警报计数,在普罗米修斯上一周警报触发了多少次
【发布时间】:2021-04-11 21:36:54
【问题描述】:

sum by(alertname) (changes(ALERTS_FOR_STATE[24h])) 这给了我所有的状态。 我只需要上周有多少警报进入关键状态(已经被解雇)。 需要帮助。

提前致谢

【问题讨论】:

    标签: prometheus prometheus-alertmanager prometheus-operator


    【解决方案1】:

    grafana 警报引擎会发布一些关于自身的内部指标,这些指标可能会帮助您解决您的需求。

    Description
    Total number of alerts
    Alert execution result
    Notifications sent counter
    Alert execution timer

    您可以阅读更多有关内部指标的信息 herehere

    【讨论】:

      猜你喜欢
      • 2019-02-28
      • 2022-11-02
      • 2021-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-17
      • 2020-03-28
      • 1970-01-01
      相关资源
      最近更新 更多