Thanks Sally for the reply here... Yes, I did setup the OpsGenie as a receiver in my configuration and added the route. I did added a dummy label in the "Alerting rules" (please see the test configuration I am using below):
alertmanagerFiles: alertmanager.yml:
global:
resolve_timeout: 1m
opsgenie_api_key: APIKEY
opsgenie_api_url: "https://api.opsgenie.com/"
route:
repeat_interval: 1h
group_wait: 10s
group_interval: 5m
receiver: 'saas-ops'
receivers:
- name: 'saas-ops'
opsgenie_configs:
- api_key: "API KEY"
api_url: "https://api.opsgenie.com/"
responders:
- name: "Vikram-test"
type: team
## Prometheus server ConfigMap entries
##
serverFiles:
## Alerts configuration
## Ref: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
alerting_rules.yml:
groups:
- name: AllInstances
rules:
- alert: InstanceDown1
expr: up == 1
for: 1m
annotations:
title: 'Instance {{ $labels.instance }} down'
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minute.'
labels:
severity: 'critical'
However, I am not sure how the "
labels" here in Prometheus gets tagged into as "
tags" in OpsGenie? This part, I am mot sure.