【问题标题】:Combine Prometheus alert conditions with "or"?将 Prometheus 警报条件与“或”结合起来?
【发布时间】:2017-07-10 16:15:57
【问题描述】:

我知道 Prometheus 在警报语句中支持 andunlesshttps://www.robustperception.io/combining-alert-conditions/

是否支持or?我想编写一个警报,如果时间序列超过阈值或在给定时间段内不存在,则会触发。

【问题讨论】:

    标签: prometheus


    【解决方案1】:

    是的,or 是 Prometheus 运算符。见the docs

    【讨论】:

    • 事后看来,我可以看到这篇文章不是关于警报规则中的特殊构造,而是关于如何在警报规则中使用已经存在的运算符。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 2015-11-07
    • 2020-03-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多