Routing with Exclusion RulesΒΆ
This guide defines a sink that receives all notifications except for something specific.
To drop a specific notification altogether, see Silencing Alerts.
Using Matchers to Exclude AlertsΒΆ
To excluding notifications from a sink, define a matcher with a "negative lookahead regex":
For example, we can exclude notifications related to pods and deployments:
sinksConfig:
- slack_sink:
name: other_slack_sink
slack_channel: no-pods-or-deployments
api_key: secret-key
scope:
# don't send notifications related to pods and deployments
exclude:
- kind: [pod, deployment]