Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Monitor n8n workflow health from execution history and alert via Telegram
Runs every six hours, checks active n8n workflows and recent executions, and sends a Telegram alert only when failures or problems are found.
What it does
### How it works This workflow runs every six hours to monitor active n8n workflows. It lists published workflows, excludes the monitor workflow itself, then loops through each remaining workflow to fetch its definition and recent execution history. After all workflows are assessed, it builds a health report and sends a Telegram alert only when issues are detected. ### Setup steps - Configure the n8n credentials used by the n8n nodes so they can list workflows, retrieve workflow details, and read executions from the target instance. - Confirm the schedule trigger interval is appropriate for your monitoring needs. - Update the exclusion logic so the monitor workflow reliably filters itself out. - Set up Telegram bot credentials and the destination chat ID, then enable the Telegram alert node after testing. ### Customization Adjust the assessment and report code nodes to change what counts as unhealthy, how many executions are reviewed, and the wording or destination of alert messages.
The steps
- Every 6 Hours Trigger
- Fetch Active Workflows
- Filter Active Workflows
- Loop Over Workflow Batches
- Retrieve Workflow Details
- Fetch Recent Executions
- Evaluate Workflow Health
- Generate Health Report
- Check for Alerts
- Send Telegram Alert
- Send a message
Similar automations
Monitoring, Ops & IncidentsMonitor JSON business health endpoints and alert Slack on failures and recovery10 stepsMonitoring, Ops & IncidentsMonitor n8n workflow errors and OpenAI spend with Slack, Gmail and Sheets51 stepsChatbots & Messaging BotsAnswer Health Questions with an OpenAI Safety-Checked Assistant10 stepsMonitoring, Ops & IncidentsMonitor Amadeus and Booking API Health with WhatsApp Alerts8 steps