Skip to content

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.

  • 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.

  • 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
  1. In OpsGenie, open Settings → Integrations (or Teams → <your team> → Integrations if you want the integration scoped to one team).
  2. Click Add Integration and pick API.
  3. Name it (for example, Reoclo).
  4. Copy the API Key. It is a UUID-formatted string.
  5. Make sure Enabled is on and Create and Update Access is granted.
  6. 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.

  1. Open Settings → Notification Channels.
  2. Click Add Channel → OpsGenie.
  3. Give it a name (for example, oncall-platform).
  4. Pick the Region: us or eu. This must match your OpsGenie account.
  5. (Optional) Enter a Team name to auto-assign new alerts to that team’s responders.
  6. Paste the API Key into API Key.
  7. (Optional) Customize the Priority Map. See below.
  8. Click Send Test. A [TEST] Reoclo notification channel test alert should appear in OpsGenie with priority P5.
  9. Pick which events this channel receives.
  10. Save.
  11. Close or acknowledge the test alert so your rotation is not disturbed.
Terminal window
reoclo channels create opsgenie \
--name "oncall-platform" \
--config region=us,team=platform \
--secret "<your-api-key>" \
--events deploy_failed,monitoring_uptime_down,incident_created

Or via YAML with a custom priority map:

kind: opsgenie
name: oncall-platform
config:
region: us
team: platform
priority_map:
critical: P1
warn: P2
info: P4
secret: ${env:OPSGENIE_API_KEY}
events:
deploy_failed: true
monitoring_uptime_down: true
incident_created: true
security_ip_conflict: true

Reoclo carries one of three severities into OpsGenie’s priority field:

Reoclo severityDefault OpsGenie priority
criticalP1
warnP3
infoP5
noneP5

Override per-channel via priority_map:

config:
region: us
priority_map:
critical: P1
warn: P2
info: P4

Valid priorities are P1 through P5. P1 typically pages immediately, and P5 rarely notifies. Pick whatever matches your existing escalation policies.

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.

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 ReocloWhat Reoclo sends
Alert firesCreates the alert, with the alias set
Alert escalates to a higher severityPosts the alert again under the same alias, which OpsGenie merges into the open alert
Reminder for an unacknowledged alertSame as escalation: posted under the same alias
Someone acknowledges the alertAcknowledges the alert by alias
Someone resolves the alert, or it clears on its ownCloses 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.

SymptomCauseFix
401 UnauthorizedWrong key or pointed at the wrong regionVerify the API key and that region matches your OpsGenie account (us vs eu)
403 ForbiddenAPI integration missing Create and Update AccessEdit the integration in OpsGenie and grant the permission
422 team does not existTeam name in config doesn’t match an OpsGenie teamFix the team value in the channel config to match the team name exactly
Alerts assigned to no oneteam config left blankAdd a team to route, or configure OpsGenie alert policies based on the source: reoclo tag
Test passes, real events silentEvent toggles disabledOpen the channel and enable the events you want
Acknowledge or close didn’t reach OpsGenieThe API key lacks Create and Update Access, or OpsGenie was unreachableCheck the delivery history on the alert. Failed deliveries are retried; see Alerts
  • 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 team per-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.
  • 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