Alert acknowledgement With Alertmanager ukasz Mierzwa Alert states - - PowerPoint PPT Presentation

alert acknowledgement
SMART_READER_LITE
LIVE PREVIEW

Alert acknowledgement With Alertmanager ukasz Mierzwa Alert states - - PowerPoint PPT Presentation

Alert acknowledgement With Alertmanager ukasz Mierzwa Alert states in Alertmanager An alert can be: Unprocessed Active Suppressed (silence or inhibition rule) How to acknowledge an alert with only Alertmanager? Use a silence


slide-1
SLIDE 1

Alert acknowledgement

With Alertmanager Łukasz Mierzwa

slide-2
SLIDE 2

Alert states in Alertmanager

An alert can be:

  • Unprocessed
  • Active
  • Suppressed (silence or inhibition rule)
slide-3
SLIDE 3
slide-4
SLIDE 4

How to acknowledge an alert with only Alertmanager?

Use a silence

slide-5
SLIDE 5

Option #1

  • Create a silence with long duration
  • Expire it manually when alert stops
slide-6
SLIDE 6

Option #2

  • Create a silence with short duration
  • Keep extending duration as long as

alerts keep firing

slide-7
SLIDE 7

https://github.com/prymitive/kthxbye

slide-8
SLIDE 8

$ ./kthxbye 2bd8ab23-eec7-49f4-814f-f8882acf709e is not used by any alert, letting it expire 63599cb9-9766-4cf2-9fcd-035c43312005 expires in 2m34.8882584s and matches 8 alert(s), extending it by 15m0s Silence updated: 63599cb9-9766-4cf2-9fcd-035c43312005 => 81faa1ae-3c42-4619-8b35-b3bc5c409b3a 2bd8ab23-eec7-49f4-814f-f8882acf709e is not used by any alert, letting it expire

slide-9
SLIDE 9

https://github.com/prymitive/karma

slide-10
SLIDE 10
slide-11
SLIDE 11

Live demo

https://karma-demo.herokuapp.com/

slide-12
SLIDE 12

Takeaways

  • Not everything needs to be a core Prometheus /

Alertmanager feature

  • It’s easy to extend Prometheus / Alertmanager
  • It’s easy to write Alertmanager v2 API clients