Grouping
Multiple related notifications may be generated within a short time window. Instead of sending each alert separately, you can use notification grouping to consolidate multiple events into a single message.
Example: When a multiple Helm releases are failing to upgrade because of common dependency not being available, you can use notification grouping to consolidate the notifications for all the affected helm releases into a single message.
The groupBy
parameter allows you to define how notifications should be grouped.
Grouping can be done via
type
(type of the config)description
status_reason
label
in the formatlabel:app
tag
in the formattag:namespace
apiVersion: mission-control.flanksource.com/v1
kind: Notification
metadata:
name: config-health
spec:
events:
- config.unhealthy
- config.warning
waitFor: 2m
waitForEvalPeriod: 30s
groupBy:
- label:app
to:
connection: connection://default/slack