2015-10-07 27 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分鐘的時間間隔收到通知。 –