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 you acknowledge or resolve an alert in Reoclo, the matching OpsGenie alert is acknowledged or closed too.
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 (for example,
Reoclo). - Copy the API Key. It is 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 (for example,
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 is not 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, and 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.
Alert lifecycle in OpsGenie
Section titled “Alert lifecycle in OpsGenie”Every Reoclo alert maps to one OpsGenie alert for its whole life. Reoclo uses the alert’s ID as the OpsGenie alias, so repeated events refer to the same alert.
| What happens in Reoclo | What Reoclo sends |
|---|---|
| Alert fires | Creates the alert, with the alias set |
| Alert escalates to a higher severity | Posts the alert again under the same alias, which OpsGenie merges into the open alert |
| Reminder for an unacknowledged alert | Same as escalation: posted under the same alias |
| Someone acknowledges the alert | Acknowledges the alert by alias |
| Someone resolves the alert, or it clears on its own | Closes the alert by alias |
Unacknowledging an alert in Reoclo doesn’t send anything to OpsGenie.
Events that aren’t alerts, such as deploy_failed, have no alert to track. Each one creates a new OpsGenie alert, so close those in OpsGenie.
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 |
| Acknowledge or close didn’t reach OpsGenie | The API key lacks Create and Update Access, or OpsGenie was unreachable | Check the delivery history on the alert. Failed deliveries are retried; see Alerts |
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
- Read Alerts to see how acknowledge, resolve, and reminders reach OpsGenie
- Configure Alert Rules so monitor thresholds page on-call