【问题标题】:What happens to Prometheus alerts if metrics stop coming?如果指标停止出现,Prometheus 警报会发生什么?
【发布时间】:2017-08-03 22:55:30
【问题描述】:

我有这样的 Prometheus 警报:

ALERT etcdNoLeader
    IF etcd_server_has_leader{job="etcd"} == 0
    FOR 1m

如果etcd_server_has_leader 指标停止生成数据会怎样? 警报会触发吗?它有什么作用吗?

【问题讨论】:

    标签: alert monitoring prometheus


    【解决方案1】:

    警报将停止触发。您通常需要在 up == 0 上发出警报,并且根据您的设置可能还需要 absent(up)

    【讨论】:

    • 如果警报一开始没有触发,它就不会开始触发吧?
    猜你喜欢
    • 2021-02-20
    • 1970-01-01
    • 2017-04-21
    • 2021-04-10
    • 2022-01-26
    • 2019-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多