Dropping Specific AlertsΒΆ
This guide defines a sink that receives all notifications except for a specific alert.
To drop a specific notification globally from all sinks, see Silencing Alerts.
Exclude Alerts by Alert NameΒΆ
Using sink scopes, you can drop all alerts with a specific name:
sinksConfig:
- slack_sink:
name: main_sink
slack_channel: main-notifications
api_key: secret-key
- scope:
exclude:
# don't send notifications where the alert name is ANY of the following
- identifier: [ImagePullBackoff, CrashLoopBackoff, CPUThrottlingHigh]
Exclude Alert by NamespaceΒΆ
Using sink scopes, you can drop all alerts from a specific namespace:
sinksConfig:
- slack_sink:
name: other_slack_sink
slack_channel: no-pods-or-deployments
api_key: secret-key
scope:
exclude:
- namespace: ["kube-system"]