在 Bosun 中重复电子邮件通知

Repeating email notifications in Bosun

在Bosun配置的通知中,我设置超时为5m即5分钟。 我每隔 5 分钟或 10 分钟就会收到电子邮件。 我无法调试为什么会这样。 请帮忙。

    notification default {
    email =jon@rohit.com
    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

}

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

如果这不是您想要的,您有几个选择。

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

您期望的行为是什么?