Skip to content

Request - exclusionList in Alert should filter on more than just the message #418

Description

@philipsabri

Hello! Currently running into a few problems with more "complex" Alert configs.

Would be nice if we could use exclusionList on more than just the message such as the name of the alert, which I believe is called event.InvolvedObject.Name

I would like to run something like this without having to hardcore all services in eventSources for the first Alert config but still be able to add more customizable slack messages on only some services.

apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Alert
metadata:
  name: service-deploy
  namespace: flux-system
spec:
  summary: "HelmRelease deploys"
  providerRef:
    name: slack-service-deploy
  eventSeverity: info
  eventSources:
    - kind: HelmRelease
      name: "*"
  exclusionList:
    - ".*flurrens-service.*"
---
apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Alert
metadata:
  name: service-deploy-flurren
  namespace: flux-system
spec:
  summary: "tex text notify owner <@SLACK_ID_HERE>"
  providerRef:
    name: slack-service-deploy
  eventSeverity: info
  eventSources:
    - kind: HelmRelease
      name: "*"
      matchLabels:
        owner: flurren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions