OpsGenie Notifications
Reoclo creates OpsGenie alerts via the Alerts API v2, with per-channel region selection (US or EU), optional team routing, and a customizable severity → priority map.
When to use it
Section titled “When to use it”- Your on-call lives in OpsGenie’s rotations and policies
- You want alerts routed to specific teams without touching escalation policies in Reoclo
- You use Jira Service Management — OpsGenie alerts integrate natively
For PagerDuty, see PagerDuty. For chat, see Slack or Microsoft Teams.
Prerequisites
Section titled “Prerequisites”- An OpsGenie account (US or EU data residency)
- Permission to create API integrations
- (Optional) The name of an OpsGenie team you want alerts assigned to
Step 1 — Create an API integration
Section titled “Step 1 — Create an API integration”- In OpsGenie, open Settings → Integrations (or Teams → <your team> → Integrations if you want the integration scoped to one team).
- Click Add Integration and pick API.
- Name it (e.g.,
Reoclo). - Copy the API Key. It’s a UUID-formatted string.
- Make sure Enabled is on and Create and Update Access is granted.
- Click Save Integration.
Note your region:
- US accounts use
api.opsgenie.com - EU accounts use
api.eu.opsgenie.com
Reoclo picks the right host from the region you set on the channel.
Step 2 — Create the channel in Reoclo
Section titled “Step 2 — Create the channel in Reoclo”Dashboard
Section titled “Dashboard”- Open Settings → Notification Channels.
- Click Add Channel → OpsGenie.
- Give it a name (e.g.,
oncall-platform). - Pick the Region —
usoreu. This must match your OpsGenie account. - (Optional) Enter a Team name to auto-assign new alerts to that team’s responders.
- Paste the API Key into API Key.
- (Optional) Customize the Priority Map — see below.
- Click Send Test — a
[TEST] Reoclo notification channel testalert should appear in OpsGenie with priorityP5. - Pick which events this channel receives.
- Save.
- Close or acknowledge the test alert so your rotation isn’t disturbed.
reoclo channels create opsgenie \ --name "oncall-platform" \ --config region=us,team=platform \ --secret "<your-api-key>" \ --events deploy_failed,monitoring_uptime_down,incident_createdOr via YAML with a custom priority map:
kind: opsgeniename: oncall-platformconfig: region: us team: platform priority_map: critical: P1 warn: P2 info: P4secret: ${env:OPSGENIE_API_KEY}events: deploy_failed: true monitoring_uptime_down: true incident_created: true security_ip_conflict: truePriority mapping
Section titled “Priority mapping”Reoclo carries one of three severities into OpsGenie’s priority field:
| Reoclo severity | Default OpsGenie priority |
|---|---|
critical | P1 |
warn | P3 |
info | P5 |
| none | P5 |
Override per-channel via priority_map:
config: region: us priority_map: critical: P1 warn: P2 info: P4Valid priorities are P1 through P5. P1 typically pages immediately; P5 rarely notifies — pick whatever matches your existing escalation policies.
Payload
Section titled “Payload”Reoclo posts to https://api.opsgenie.com/v2/alerts (or the EU host) with header Authorization: GenieKey <api-key>:
{ "message": "Deployment failed", "description": "Deployment of MyApp to prod-1 failed: exit code 137 (OOM)", "priority": "P1", "source": "reoclo", "details": { "test": "False", "deployment_id": "dep-abc123", "application_name": "MyApp" }, "responders": [{ "name": "platform", "type": "team" }]}The responders array is included only when you set a team in the channel config. OpsGenie returns 202 Accepted on success.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
401 Unauthorized | Wrong key or pointed at the wrong region | Verify the API key and that region matches your OpsGenie account (us vs eu) |
403 Forbidden | API integration missing Create and Update Access | Edit the integration in OpsGenie and grant the permission |
422 team does not exist | Team name in config doesn’t match an OpsGenie team | Fix the team value in the channel config to match the team name exactly |
| Alerts assigned to no one | team config left blank | Add a team to route, or configure OpsGenie alert policies based on the source: reoclo tag |
| Test passes, real events silent | Event toggles disabled | Open the channel and enable the events you want |
Routing tips
Section titled “Routing tips”- Scope integrations to teams. Creating the integration inside a team in OpsGenie automatically sets that team as the default responder and is cleaner than setting
teamper-channel in Reoclo. - Use multiple channels for multiple teams. Create one Reoclo channel per OpsGenie team and filter events to what each team should own.
- Pair with chat. Page via OpsGenie, but also broadcast to a Slack channel so the team has shared context.
Next Steps
Section titled “Next Steps”- Add a Slack channel for shared incident context
- Configure Alert Rules so monitor thresholds page on-call