Interview Prep/Monitoring & Observability/On-Call Integration & Alert Fatigue

How do you integrate Alertmanager with Opsgenie?

BeginnerProductionOn-Call Integration & Alert Fatigue
Answer
receivers:
  - name: opsgenie-platform
    opsgenie_configs:
      - api_key_file: /etc/alertmanager/secrets/opsgenie
        responders:
          - name: platform-team
            type: team
        priority: '{{ if eq .CommonLabels.severity "page" }}P1{{ else }}P3{{ end }}'
        tags: '{{ .CommonLabels.cluster }},{{ .CommonLabels.service }}'

Opsgenie handles schedules, escalation and the heartbeat for the Watchdog alert. Note that Atlassian has announced Opsgenie's end of sale and migration into Jira Service Management/Compass, so new setups often target JSM or PagerDuty instead.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on On-Call Integration & Alert Fatigue