Monitor HTTP endpoints and send status-change alerts to Slack and Sheets
Ready for 3.0What this workflow does
This workflow has 25 nodes and runs on a schedule (every 5 minutes) (plus 2 other triggers). Along the way it connects Slack and Google Sheets.
How it runs
Trigger: On a schedule (every 5 minutes) (plus 2 other triggers).
- Endpoints to watch (Code): runs custom JavaScript code
- Read what happened (Code): runs custom JavaScript code
- Split endpoints (Loop Over Items (Split in Batches)): loops over the items in batches
- Build digest (Code): runs custom JavaScript code
- Ping endpoint (HTTP Request): calls an HTTP API
- Anything worth sending? (If): checks a condition and branches into true / false
- Judge response (Code): runs custom JavaScript code
- Send daily digest (Slack): uses Slack
- Healthy? (If): checks a condition and branches into true / false
- Track state change (Code): runs custom JavaScript code
…plus 11 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow checks a list of HTTP endpoints every 5 minutes, retries once on failure, and posts Slack alerts only when an endpoint goes down or recovers, with optional escalation and Google Sheets logging plus a daily Slack digest of any…