Kütüphane / İzleme, Operasyon ve Olaylar
İzleme, Operasyon ve Olaylar
Slack, e-posta ve Postgres üzerinden izleme uyarılarından kesinti olaylarını koordine et
İzleme uyarılarını bir webhook'a gelince servis başına tek olaya dönüştürür, Slack'te bir savaş odası açar ve sahiplerini önem derecesine göre çağırır. İzleme uyarısı geldiğinde her seferinde çalışır.
Ne yapar
## 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
Adımlar
- Manual Trigger - Run Setup Once
- Postgres - Create Continuity Tables
- Webhook - Incident Alert
- Webhook - Acknowledge Incident
- Webhook - Resolve Incident
- Schedule Trigger - Every 5 Minutes
- Set Continuity Config
- Switch - Route By Entry Point
- Code - Normalize Alert
- Switch - Alert Type
- Postgres - Open Or Attach Incident
- Respond - Alert Accepted
- Is New Incident?
- Postgres - Log Recovery Signal
Toplam 50 adım.
Benzer otomasyonlar
İzleme, Operasyon ve Olaylarİş akışı hatalarını Postgres'e kaydet ve Pushover ile SMTP uyarılarını sınırla13 adımİzleme, Operasyon ve OlaylarMalzeme Fiyat Trendlerini Takip Et ve Satın Alma Önerileri Al11 adımİzleme, Operasyon ve Olaylarİş akışı hatalarını kaydetme ve uyarı e-postalarını sınırlama30 adımİzleme, Operasyon ve Olaylarİş Akışı Hatalarını Günlüğe Kaydet ve Uyarı E-postalarını Sınırla13 adım