-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
Description
Hi,
I see I can define matcher rules like this
route:
routes:
- matchers:
- alertname =~ ".*foo.*"
receiver: my_receiverwhat I'd want would be the possibility to leverage the alerts' labels, and the available functions, to dynamically construct that regex with something like
route:
routes:
- matchers:
- alertname =~ ".*{{ .CommonLabels.some_label }}.*"
receiver: my_receiverand even
route:
routes:
- matchers:
- alertname =~ ".*{{ .CommonLabels.some_label | reReplaceAll 'foo' 'bar' }}.*"
receiver: my_receiverThat would let admins define small but dynamic set of rules, that would let users tweak the behavior of the alerting system simply by defining the labels/values of their alerts
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To triage