Bosun Silencing and Squelching Alerts

Revision as of 13:51, 17 May 2021 by Admin (talk | contribs) (Text replacement - "{{note| This article is an extract of the original Stack Overflow Documentation created by contributors and released under [ CC BY-SA 3.0]. This website is not affiliated with Stack Overflow }}" to "{{note| Credit:Stack_Overflow_Documentation }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Squelching a hostEdit

If one does not want to receive any alert for a specific host or service - at least momentarily - one can squelch it.

alert thisis.down {
  macro = host.mymacro
  template = mytemplate
  $notes = This alert will...
  $metric = "avg:os.service.running{host=*,name=...
  warn = min( a($metric, ...

  squelch = host=sqldev01,flavor=amq
  squelch = host=test01

This alert won't appear in the dashboard for service amq on host sqldev01, and won't appear at all for any service running on host test01.