Skip to content

PagerDuty, Opsgenie, and On-Call Integrations

Watchgoose integrates with PagerDuty, Opsgenie (and Jira Service Management), Splunk On-Call (VictorOps), PagerTree, and Spike.sh. Missed cron jobs and failed backups open an incident when a check goes down and resolve it automatically when the check recovers.

How Auto-Resolution Works

All five integrations follow the same lifecycle:

  1. When an armed check misses its schedule plus grace time (or receives /fail or a non-zero exit code), Watchgoose sends a trigger event keyed by the check's unique_key.
  2. While the check stays down, repeated failures do not open duplicate incidents. Your on-call tool handles acknowledgment, escalation delays, and rotations on the open incident.
  3. When the check receives a success ping, Watchgoose sends a recovery event with the same unique_key to resolve or close the open incident.

PagerDuty

Watchgoose uses PagerDuty's Events API v1 (events.pagerduty.com) to trigger and resolve incidents on a PagerDuty Service.

  1. In PagerDuty, open Services > Service Directory and create a service or open an existing service's Integrations tab.
  2. Add an integration and choose Events API v1.
  3. Copy the 32-character Integration Key.
  4. In Watchgoose, open Integrations > PagerDuty, paste the key, and click Save Integration.

Triggered incidents include the project name, check description, tags, schedule or period, timezone, total pings, last ping time and type, and a link to the check (incident_key = check unique_key).

Opsgenie and Jira Service Management

Watchgoose connects to Opsgenie's v2 Alerts API in either the US (api.opsgenie.com) or EU (api.eu.opsgenie.com) region. Check tags map onto the Opsgenie alert, and recovery closes the alert by alias.

  1. In Opsgenie, open your team's Integrations tab and add an API integration.
  2. Make sure Create and Update Access is enabled, copy the API Key, and turn the integration on.
  3. In Watchgoose, open Integrations > Opsgenie, paste the key, choose your region (US or EU), and save.

Atlassian has merged Opsgenie's alerting engine into Jira Service Management. If your JSM site uses an Opsgenie-backed API integration with a GenieKey, select the matching US or EU region here. If your JSM cloud site uses incoming automation webhooks instead, set up an Outbound Webhook with your JSM URL and secret header.

Splunk On-Call (VictorOps)

Watchgoose posts CRITICAL events on down and RECOVERY events on up (entity_id = check unique_key) to Splunk On-Call's REST endpoint.

  1. In Splunk On-Call, open Integrations, enable the REST integration, and copy the Service API Endpoint URL.
  2. In Watchgoose, open Integrations > Splunk On-Call and paste the URL.
  3. Replace the trailing $routing_key placeholder in the URL with the target team's routing key, then click Save Integration.

If Splunk On-Call returns HTTP 404 because an endpoint was revoked, Watchgoose marks the channel as permanently failed instead of retrying.

PagerTree

  1. In PagerTree, open Integrations, click New Integration, and select the Healthchecks integration type (compatible trigger/resolve JSON format).
  2. Pick the target team or router, create the integration, and copy the Endpoint URL.
  3. In Watchgoose, open Integrations > PagerTree, paste the URL, and save.

Spike.sh

  1. In Spike.sh, open Integrations > New integration and choose Healthchecks.
  2. Pick the service and escalation policy, then copy the generated webhook URL.
  3. In Watchgoose, open Integrations > Spike.sh, paste the URL, and save.

Practical Routing Tips

  • Separate chat from paging per check. Connect both chat (Slack, Discord, or Microsoft Teams) and your on-call tool to the project, then turn the on-call icon off on low-priority cleanup jobs in the Checks list.
  • Size grace time above normal runtime swings. If a nightly pg_dump or rclone job takes 4 to 14 minutes, set a 20-minute grace window so slow storage I/O does not page someone at 02:10.
  • For solo servers without PagerDuty, use ntfy, Gotify, or Pushover (Pushover Emergency alerts repeat every 5 minutes for up to 3 hours and cancel automatically on recovery) or paid-plan SMS and phone call alerts.