Fellas,
I am not a developer here, so asking in layman terms.
I am trying to set integration between Prometheus/Alertmanager with OpsGenie and alerts to get route to multiple teams using "tags" option in OpsGenie.
So in order to set the tags field, it seems that can be achieved from Alertmanager configuration (this is managed from Alertmanager configuration) or even from individual alerts (this is managed from Prometheus configuration).
Please see below for the Alertmanager configuration (the "tags" part didn't worked):
apiVersion: v1
data:
alertmanager.yml: |
global:
opsgenie_api_key: “”
resolve_timeout: 1m
receivers:
- name: saas-ops
opsgenie_configs:
- send_resolved: true
teams: Operations
tags: nonprod
tags: '{{ range .Alerts }}{{ .Labels.Values | join "," }}{{end}}'
priority: '{{ range .Alerts }}{{ if eq .Labels.severity "critical"}}P1{{else}}P3{{end}}{{end}}'
- api_key: “”
responders:
- name: teamname
type: team
route:
group_interval: 1m
group_wait: 10s
receiver: saas-ops
repeat_interval: 1m
I am little confused on how to achieve this fellas...
Thanks
Vikram Y