Can one mimir rule be captured by different notification policies? #2071
Replies: 2 comments
-
I think what you want is not changing the rule, but changing your Alertmanager configuration: When an alerting rule is firing, a notification is sent to the Alertmanager. Then it's Alertmanager responsability to send the notification through the configured receivers (notification channels). In the Alertmanager routes, by default the routing stop at the first match (because of default
There's apparently a syntax error in the file. I would need the whole |
Beta Was this translation helpful? Give feedback.
-
Have you tried putting the template in quotes? I am not sure if this will allow you to use diffferent notification policies, but I think the immediate error you are seeing is caused by this team: '{{ $labels.team }}' |
Beta Was this translation helpful? Give feedback.
-
For example, we want to define one mimir rule that can notify different oncall group, etc. Can one mimir rule be captured by different notification policies?
We tried the following setup. If it work, then we can have different notification policy capture alert with different label. For example
team: team-1
andteam: team-2
should be captured by different notification policies.However it doesn't work, it ends up having error liek this:
Beta Was this translation helpful? Give feedback.
All reactions