What is the problem?
Every now and then, I get a DatasourceError. I want to route this alert to a specific contact point using object_matchers in the notification policy, like this:
object_matchers:
- ['is_alert', '=', 'yes'] #This label is configured in my only one alert rule
- ['ref_id', '=', 'A'] #This label is automatically attached by Grafana whenever this
DatasourceError arises. See the picture below.
What would you expect?
I would expect that the alert instance has these two labels, and therefore is correctly routed through the notification policy to the correct contact point. However, I’ve tried it, and it does not work, I’ve seen no effect after adding the [‘ref_id’, ‘=’, ‘A’] matcher.
Thanks for any help.