普罗米修斯警告不要第二次播种/射击

时间:2016-02-08 07:11:18

标签: prometheus

我已经配置了这个简单的Prometheus警报

ALERT MyServiceDown
  IF my_custom_metric == 0
  FOR 15s

情景如下:

  1. 在正确的运行时中,my_custom_metric为1,而“警报”选项卡中的MyServiceDown警报为绿色。
  2. 然后我设置my_custom_metric 0并且Propetheus将其检索为0,我可以在Graph - >中看到它。控制台选项卡。
  3. MyServiceDown立即变为Pending(黄色),15秒后变为Firing(红色)。
  4. 然后我“修复bug”,my_custom_metric再次为1,MyServiceDown警告为绿色。
  5. 这是奇怪的部分。我第二次破解应用程序,以便my_custom_metric再次为0。它显示在Graph - >安慰。但MyServiceDown警报从未挂起或触发。当我重新启动Prometheus时,一切都很好,但只有一次。

    我做错了什么?

1 个答案:

答案 0 :(得分:1)

版本0.17rc1中有错误

https://github.com/prometheus/prometheus/issues/1372

固定在0.17rc2

问题解决了。

相关问题