Skip to content

PagerDuty and Opsgenie compatibility ​

Many tools can already send alerts to PagerDuty or Opsgenie. Rotadeck accepts the same requests, so those tools can send to Rotadeck instead: change the address, and use a Rotadeck integration key as the key.

This is also the quickest way to move from PagerDuty or Opsgenie without reconfiguring every tool.

TIP

This only works with tools that let you change the PagerDuty or Opsgenie address. Prometheus Alertmanager, Grafana, Zabbix and your own scripts can. Some hosted tools can't; for those, use the tool's own integration or a generic webhook.

Setting up ​

  1. Create an integration and choose PagerDuty-compatible or Opsgenie-compatible. The integration page shows the address, the key and an example.
  2. In your tool, change the PagerDuty or Opsgenie address to Rotadeck's, and use the integration key as the routing key or API key.

The compatible addresses accept the key of any integration, so you can also point a tool at an integration you already have.

PagerDuty Events API ​

Events API v2POST https://api.rotadeck.com/api/v1/pagerduty/v2/enqueue
Older v1 APIPOST https://api.rotadeck.com/api/v1/pagerduty/generic/2010-04-15/create_event.json
Keyrouting_key (v2) or service_key (v1): the integration key

trigger, acknowledge and resolve work as in PagerDuty, matched on dedup_key (v2) or incident_key (v1). If a trigger has no key, one is generated and returned, so the tool can resolve it later.

bash
curl -X POST https://api.rotadeck.com/api/v1/pagerduty/v2/enqueue \
  -H "Content-Type: application/json" \
  -d '{
    "routing_key": "{integration_key}",
    "event_action": "trigger",
    "dedup_key": "disk-db-2",
    "payload": {"summary": "Disk at 90% on db-2", "source": "db-2", "severity": "critical"}
  }'

The response matches PagerDuty's:

json
{"status": "success", "message": "Event processed", "dedup_key": "disk-db-2"}

An invalid event or key returns 400 with "status": "invalid event" and the reasons in errors.

Alertmanager example ​

yaml
receivers:
  - name: rotadeck
    pagerduty_configs:
      - routing_key: "{integration_key}"
        url: "https://api.rotadeck.com/api/v1/pagerduty/v2/enqueue"
        send_resolved: true

Opsgenie Alert API ​

API URLhttps://api.rotadeck.com/api/v1/opsgenie
CreatePOST /v2/alerts
AcknowledgePOST /v2/alerts/{identifier}/acknowledge
ClosePOST /v2/alerts/{identifier}/close
KeyAuthorization: GenieKey {integration_key}, or ?apiKey={integration_key}

Alerts are matched on alias, as in Opsgenie. Use identifierType=alias when acknowledging or closing. Responses are Opsgenie's 202 {"result": "Request will be processed", ...}.

Some tools ask for the full alert address rather than the API URL; Grafana's Alert API URL is one. For those, use https://api.rotadeck.com/api/v1/opsgenie/v2/alerts.

Alertmanager example ​

yaml
receivers:
  - name: rotadeck
    opsgenie_configs:
      - api_key: "{integration_key}"
        api_url: "https://api.rotadeck.com/api/v1/opsgenie/"
        send_resolved: true