Status page webhooks: know when a vendor you depend on goes down
Subscribe a Pulso webhook source to a vendor's Atlassian Statuspage and turn component outages, major incidents and scheduled maintenance into signals.
Many vendors publish their status on Atlassian Statuspage, and many of those let anyone subscribe by webhook. Subscribe a Pulso webhook source and the vendor’s outages become signals with your own playbook: switch to the fallback provider, tell support, pause the campaign.
Connect a vendor’s status page#
Add a status page to Pulso to create a webhook source called Vendor status; name it after the vendor, like GitHub status. It shows these steps with the source’s URL, then creates the monitors below that you pick, with their playbooks and a report. To start from scratch instead, create a webhook data source named after the vendor.
- On the vendor’s status page, click Subscribe to updates and choose the webhook option. It’s there only if the vendor turned webhook subscriptions on.
- Paste the source’s Endpoint URL,
https://hooks.pulso.run/webhooks/<id>/<token>, as the Webhook URL, and an email address: Statuspage writes to it when the endpoint fails. - If the page offers it, pick the components you depend on; otherwise you get them all.
The payload names the page only by its page.id, so give each vendor its own source. On your own Statuspage, turn webhooks on under Subscribers > Options > Settings by selecting Webhook as a delivery type.
What arrives#
Statuspage sends a webhook when an incident is created, updated or resolved, and when a component changes status. This is its example of a component update:
{
"meta": {
"unsubscribe": "http://statustest.flyingkleinbrothers.com:5000/?unsubscribe=j0vqr9kl3513",
"documentation": "http://doers.statuspage.io/customer-notifications/webhooks/"
},
"page": {
"id": "j2mfxwj97wnj",
"status_indicator": "major",
"status_description": "Partial System Outage"
},
"component_update": {
"created_at": "2013-05-29T21:32:28Z",
"new_status": "operational",
"old_status": "major_outage",
"id": "k7730b5v92bv",
"component_id": "rb5wq1dczvbm"
},
"component": {
"created_at": "2013-05-29T21:32:28Z",
"id": "rb5wq1dczvbm",
"name": "Some Component",
"status": "operational"
}
}
Its monitors see these columns:
| Column | Value |
|---|---|
meta.unsubscribe |
http://statustest.flyingkleinbrothers.com:5000/?unsubscribe=j0vqr9kl3513 |
page.id |
j2mfxwj97wnj |
page.status_indicator |
major |
page.status_description |
Partial System Outage |
component_update.id |
k7730b5v92bv |
component_update.old_status |
major_outage |
component_update.new_status |
operational |
component.id |
rb5wq1dczvbm |
component.name |
Some Component |
A component’s status is operational, under_maintenance, degraded_performance, partial_outage or major_outage.
An incident update has incident instead of the component columns: incident.id, incident.name, incident.status (investigating, identified, monitoring, resolved, or scheduled, in_progress, verifying, completed for maintenance), incident.impact (none, minor, major, critical or maintenance), incident.shortlink and incident.scheduled_for. Its updates’ text is in incident.incident_updates, a list in one column.
Monitors to build#
A component we depend on is down#
- Filters:
component_update.new_statusends withoutage, which matchespartial_outageandmajor_outage. Addcomponent.nameequals the component, likeWebhooks. - Uniq by:
component_update.id. - Playbook: a question, “Switch to the fallback?”, with
{{signal.component.name}}and{{signal.page.status_description}}, and a task to follow the fallback plan. Add a Slack notification to tell the team. A second monitor withdegraded_performancecan warn without paging anyone.
Major incidents#
- Filters:
incident.impactequalscritical, or a second monitor formajor. - Uniq by:
incident.id, so the incident opens one signal however many updates follow. - Playbook: a task for support to prepare an answer for customers, with
{{signal.incident.shortlink}}. Add a Slack notification with{{signal.incident.name}}.
Maintenance to plan for#
- Filters:
incident.statusequalsscheduled. - Uniq by:
incident.id. - Playbook: a task to check what the maintenance affects before
{{signal.incident.scheduled_for}}.
A status page only sends when something changes, so a heartbeat monitor doesn’t fit here: silence is the normal state.
Limits#
- No signature. Statuspage’s docs describe no signature or custom headers for subscriber webhooks. The token in the URL is the credential, so keep the URL secret, and regenerate it in the source’s settings if it leaks.
- The vendor decides. Only pages with webhook subscriptions turned on offer them, and the vendor chooses whether an incident update notifies subscribers.
- Failures. Statuspage counts a 3xx answer as a failure and waits 30 seconds for an answer. It emails the address you gave when deliveries fail.
- Content type. Statuspage documents the JSON body but not its
Content-Type; check that the first event under Recent events has its columns.
Sources: Atlassian’s Enable webhook notifications, Notification event triggers, What is a component? and the Statuspage API, and the subscribe form on GitHub’s status page.
Add Atlassian Statuspage to Pulso: a webhook source, 3 monitors with their playbooks and a report, then these steps with the source's URL.
- Vendor component outages
- Vendor critical incidents
- Vendor maintenance to plan for
- Report: Vendor status