OpsGenie integration for incident management

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

OpsGenie Integration for Incident Management

OpsGenie (Atlassian) — PagerDuty alternative with more flexible pricing and native Atlassian ecosystem integration (Jira, Confluence). For teams already using Jira Service Management, OpsGenie is included in Advanced/Premium plans at no extra cost.

Key OpsGenie Concepts

Teams — groups of engineers. Alerts route to teams, not individuals.

On-Call Schedules — duty schedules with rotation, override, temporary exceptions.

Escalation Policies — notification order on no response.

Routing Rules — conditional alert routing: by tags, source, time of day.

Alert Policies — alert transformation rules: noise suppression, auto-close, re-routing.

Connecting Alert Sources

Prometheus Alertmanager:

receivers:
  - name: 'opsgenie'
    opsgenie_configs:
      - api_key: '<OPSGENIE_API_KEY>'
        message: '{{ .CommonAnnotations.summary }}'
        description: '{{ .CommonAnnotations.description }}'
        priority: |
          {{- if eq .CommonLabels.severity "critical" -}}P1
          {{- else if eq .CommonLabels.severity "warning" -}}P3
          {{- else -}}P5{{- end -}}
        tags: '{{ .CommonLabels.alertname }},{{ .CommonLabels.cluster }}'

Grafana → OpsGenie: In Grafana alert channel select OpsGenie, enter API key. Notification contains panel screenshot.

Custom webhook (any source):

curl -X POST https://api.opsgenie.com/v2/alerts \
  -H "Authorization: GenieKey $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "High error rate on payment service",
    "alias": "payment-high-error-rate",
    "priority": "P1",
    "tags": ["payment", "production"],
    "details": {"error_rate": "5.2%", "threshold": "1%"}
  }'

Smart Alert Routing

Routing rules allow directing alerts based on context:

IF alert.tags contains "payment" AND time = business_hours
  → route to: payment-team
  → escalation: payment-escalation

IF alert.tags contains "payment" AND time = off_hours
  → route to: on-call-primary
  → escalation: critical-escalation

IF alert.priority = "P5"
  → create ticket only, no notification

Heartbeat Monitoring

OpsGenie Heartbeats — monitoring regular processes (cron jobs, batch tasks). If cron doesn't send heartbeat at expected time — alert:

import requests

def send_heartbeat(heartbeat_name: str):
    """Call after each successful cron job execution"""
    requests.get(
        f"https://api.opsgenie.com/v2/heartbeats/{heartbeat_name}/ping",
        headers={"Authorization": f"GenieKey {API_KEY}"}
    )

Configuration: period 1 hour, grace period 10 minutes. If cron didn't ping 70 minutes — alert on-call.

Jira Service Management Integration

On JSM Advanced/Premium plan — OpsGenie built-in. Alert in OpsGenie → automatically Issue in JSM. On resolve OpsGenie → Issue closes. Two-way sync: comments and status update in both tools.

For standalone Jira (Software):

  • OpsGenie → Jira integration: creates ticket on incident
  • Severity field → Jira priority mapping
  • Assignee → by on-call schedule

Maintenance Windows

Planned maintenance — alert suppression for period:

import requests, datetime

def create_maintenance(name: str, start: datetime, end: datetime, services: list):
    requests.post(
        "https://api.opsgenie.com/v1/maintenance",
        headers={"Authorization": f"GenieKey {API_KEY}"},
        json={
            "description": name,
            "time": {
                "type": "schedule",
                "startDate": start.isoformat(),
                "endDate": end.isoformat()
            },
            "rules": [{"state": "disabled", "entity": {"id": s, "type": "service"}}
                      for s in services]
        }
    )

OpsGenie Mobile App

Critical for on-call: notifications via push → call → SMS in configurable order. Ability to acknowledge and escalate directly from app without laptop.

Integration Timeframes

  • Basic setup (teams + schedules + escalation) — 1 day
  • Connecting monitoring (Prometheus, Grafana, CloudWatch) — 1 day
  • Routing rules + alert policies — 1 day
  • Heartbeats + maintenance windows — 0.5 day
  • Jira integration — 0.5-1 day