I’m provisioning notification policies using files on Grafana 9.3.1 with the following yaml:
policies.yaml:
apiVersion: 1
policies:
- orgId: 1
receiver: bizzalerts
group_by:
- grafana_folder
- alertname
routes:
- receiver: bizzalerts
matchers:
- "AWS = 'RDS'"
- "AWS = 'Elasticache'"
- receiver: bizzalerts
matchers:
- "Confluent = 'Kafka'"
I’m not expecting to have "
around the label value like in the picture
What am I doing wrong?
same happens if I’m using the following approach
matchers:
- AWS = RDS
- AWS = Elasticache
I guess that this is based on this Go struct
https://github.dev/grafana/grafana/blob/c1d3b596438b3967fec2373be6918633eef7d66d/pkg/services/ngalert/api/tooling/definitions/alertmanager.go#L705
But I simply can’t figure it out.
Any suggestions?