2015-10-07 36 views
2

中的电子邮件通知,我将超时设置为5分钟,即5分钟。 我收到5分钟或10分钟的电子邮件。 我无法调试,为什么会发生这种情况。 请帮忙。在Bosun配置通知中重复Bosun

notification default { 
    email [email protected] 
    print = true 
    next = default 
    timeout = 5m 

} 

template tags { 
    subject =`Testing Emails Sample` 
    body = `<p><strong>Tags</strong> 

    <table> 
     {{range $k, $v := .Group}} 
      {{if eq $k "api"}} 
       <tr><td>{{$k}} : {{$v}}</td></tr> 
      {{end}} 
     {{end}} 
    </table>` 
} 




alert testSampleAlert5 { 
    template = tags 
    $notes = This alert monitors the percentage of 5XX on arm APIs 


    crit = 1 
    warn = 0 
    warnNotification = default 
    critNotification = default 

} 

alert testSampleAlert4 { 
    template = tags 
    $notes = This alert monitors the percentage of 5XX on arm APIs 


    crit = 0 
    warn = 1 
    warnNotification = default 
    critNotification = default 

} 

回答

1

你所遇到的“链式通知”的水手长的特点。 nexttimeout参数指定default通知将在您配置5分钟后再次触发。由于它自身引用,它会每5分钟触发一次,直到警报被确认或关闭。

如果这不是你想要的,你有几个选项。

  1. 确认仪表板上的警报。这将停止重复所有通知链。
  2. 如果您不想每5分钟重新通知一次,或增加超时等,请删除next参数。

你期望的行为是什么?

+1

嗨,我希望每5分钟通知一次。但是,我有时会以5分钟的时间间隔或10分钟的时间间隔收到通知。 –