Hi 
I was looking for a getting alertmanager alerts to opsgenie.
If i have P1 , P2 multiple alerts in the querry i am getting alerts to 
email as well as opsgenie when i try to get only P1(critical) alerts i am 
having 422 error or unexpected EOF.

Please suggest me correct query for getting only P1 alerts (critical). 

- name: 'team-ops-genie'
  opsgenie_configs:
  - send_resolved: true
    teams: Operations
    tags: '{{ range .Alerts }}{{ .Labels.Values | join "," }}{{end}}'
    priority: '{{ range .Alerts }}{{ if eq .Labels.severity 
"critical"}}P1{{else}}P3{{end}}{{end}}'

Thanks,
amit

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/b9ca9490-cc85-4429-b1ec-982ac0f1c0a3n%40googlegroups.com.

Reply via email to