How can I group similar alerts into a single notification sent by Kapacitor?

Hi folks,

I’m trying to group similar alerts into a single notification which then sent by Kapacitor via handlers (email, slack). I’ve read the documentation of Kapacitor, but not found out the solution. So, does anyone have ideas for this useful case?

Thanks!

Hi there,

Kapacitor can be a bit tricky sometimes. For this issue, could you tell us a little bit more information, specifically what you mean by

group similar alerts into a single notification

If what you mean is that you don’t want repeated alerts of the same content, then adding a

.stateChangesOnly()

could resolve the issue. This would basically result in notification only when the state/status has changed. Try taking a look at the docs on it for further clarification.

If I’ve misunderstood, please let me know and we can find another solution.

Good luck!