Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Coordinate outage incidents across Slack, email and Postgres from monitoring alerts

Turns alerts posted to a webhook into one incident per service, opens a Slack war room and pages owners by severity. Runs whenever a monitoring alert arrives.

What it does

## Business Continuity: Automatic Team Coordination During Outages ### How it works Turns a monitoring alert into a coordinated response without anyone having to organize it by hand. 1. Declare: an alert (POST /bc-alert, simple JSON or Prometheus Alertmanager) opens one incident per service. Further alerts for the same service attach to it, so there are no duplicate war rooms. 2. Coordinate: a Slack war room is created and gets the brief, first-response checklist and runbook. Who is paged depends on severity: the service owner always, dependent teams and customer communications from SEV2, executives on SEV1. Each person gets an email with their own acknowledge link. 3. Acknowledge: the first responder to click becomes incident commander and escalation stops. 4. Escalate: with no acknowledgement (SEV1 5 min, SEV2 15, SEV3 60) it moves up: team lead, engineering director, CTO. 5. Keep everyone informed: SEV1 gets a stakeholder update every 30 minutes, SEV2 every 60, built from the incident timeline. 6. Resolve: the commander calls POST /bc-resolve with a summary. Duration is posted, stakeholders are emailed and a post-incident review due date is set. Everything is written to an incident timeline table for the review. ### Setup steps - Add Postgres, SMTP (email) and Slack credentials (Header Auth Authorization: Bearer xoxb-... with channels:manage and chat:write scopes), then run the manual setup once. - Edit Set Continuity Config: your n8n webhook base URL, sender email, default Slack channel id, executive, comms and stakeholder emails, ack and update timings. - Replace the demo teams and services with your own. - Point your monitoring at POST /bc-alert with {"service":"payments-api","title":"High error rate","severity":"critical","description":"..."} and activate the workflow. ### Layout 1 Setup 2-4 Entry, intake and declaration 5-6 Acknowledge and resolve 7-9 Monitor, escalate and status updates

The steps

  1. Manual Trigger - Run Setup Once
  2. Postgres - Create Continuity Tables
  3. Webhook - Incident Alert
  4. Webhook - Acknowledge Incident
  5. Webhook - Resolve Incident
  6. Schedule Trigger - Every 5 Minutes
  7. Set Continuity Config
  8. Switch - Route By Entry Point
  9. Code - Normalize Alert
  10. Switch - Alert Type
  11. Postgres - Open Or Attach Incident
  12. Respond - Alert Accepted
  13. Is New Incident?
  14. Postgres - Log Recovery Signal

50 steps in total.

Similar automations