Skip to content

Improve notification routing similar to grafana #42

@Darkness4

Description

@Darkness4

Implement:

  • Basic notification labelling: "public", "internal", or "info", "warn" etc..
  • Rewrite urls to endpoints:
urls: # Deprecated, but assume a empty selector (allow everything)
  - 'gotify://gotify.example.com/token'

endpoints:
  - urls: 
      - 'gotify://gotify.example1.com/token'
    selector: [] # Allow everything
    noPriority: ... # Override default rules
    includeTitleInMessage: ...
  - urls: 
      - 'gotify://gotify.example2.com/token'
      - 'gotify://gotify.example3.com/token'
    selector:
      - 'public' # Allowlist mode, notification with public label will go here
  - urls: 
      - 'gotify://gotify.example4.com/token'
    selector:
      - '-public' # Denylist mode, notification without "public" label will go here
  - urls: 
      - 'gotify://gotify.example5.com/token'
    selector: # Without public, with internal.
      - '-public'
      - 'internal'

Notifications can go through multiple endpoints.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions