When I restart the alertmanager it's running, but I can't see any of these
alerts in OpsGenie.
I follow this doc : https://support.atlassian.com/opsgenie/docs/integrate-
opsgenie-with-prometheus/ and this doc
https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
Is there anything to controlling about Alertmanager & OpsGenie integration?
This is my alertmanager.yml file;
global:
resolve_timeout: 5m
route:
receiver: slack_general
group_by: ['instance']
group_wait: 1s
group_interval: 1s
routes:
- match:
severity: critical
continue: true
receiver: slack_general
- match:
severity: warning
continue: true
receiver: slack_general
- match:
severity: critical
continue: true
- match:
severity: warning
continue: true
# added receivers for opsgenie
- match:
severity: critical
receiver: 'netmera_opsgenie'
- match:
severity: warning
receiver: 'netmera_opsgenie'
receivers:
- name: slack_general
slack_configs:
- api_url: 'slack api url'
channel: '#netmera-prometheus'
send_resolved: true
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
# added opsgenie configs
- name: 'netmera_opsgenie'
opsgenie_configs:
- api_key: opsgenie api key
api_url: https://api.eu.opsgenie.com/
message: '{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}'
description: '{{ range .Alerts }}{{ .Annotations.description }}\n{{ end
}}'
priority: '{{ range .Alerts }}{{ if eq .Labels.severity
"critical"}}P2{{else}}P3{{end}}{{end}}'
I contacted with OpsGenie support and they checked the logs, but they
couldn't see anything comes from alert manager.
Could you please help me about that?
Thank you!
--
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/ea0b5866-e178-4e87-8155-16d930d6c092n%40googlegroups.com.