Hi everyone,
I am trying to get alertmanager to forward alerts to opsgenie.
I have had a look at https://prometheus.io/docs/alerting/latest/configuration/#opsgenie-receiver-%3Copsgenie_config%3E - but reading that page didn't help much.
I found the following thread on this forum: https://community.atlassian.com/t5/Opsgenie-questions/Alert-notification-template-for-alertmanager-prometheus-to-send/qaq-p/1560666
but then again when I run that code, I get the following error in the alertmanager container:
err="yaml: unmarshal errors:\n line 10: field priority not found in type config.plain"
Below is my alertmanager.yml file:
Is there a template file I could download? It seems to me that the above code might be missing some declarations which is why "priority" is not found as a field.
Thanks for your help
Hi @Guillaume Bettayeb ,
Have you tried it with setting priority as just a value of "P1", "P2", etc.?
I am wondering whether the conditional statements you are using for the priority field is are whats causing the issue.
If you could change it to just a hardcoded priority value of P1, P2, P3, P4, or P5, that would help rule out what's causing the issue with the priority field.
Thanks,
Samir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.