Notification Policies

Notification policies provide you with a flexible way of designing how to handle notifications and minimize alert noise. For a complete explanation on notification policies, see the upstream Grafana documentation.

The following snippet shows an example notification policy routing to the operations or security team based on the team label.

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaNotificationPolicy
metadata:
  name: grafananotificationpolicy-sample
spec:
  instanceSelector:
    matchLabels:
      dashboards: "grafana"
  route:
    receiver: grafana-email-default
    group_by:
      - grafana_folder
      - alertname
    routes:
      - receiver: grafana-email-operations
        object_matchers:
          - - team
            - =
            - operations
      - receiver: grafana-email-security
        object_matchers:
          - - team
            - =
            - security