How to monitor n8n workflows
Monitoring an n8n workflow means checking three things: it ran on schedule, it didn't fail, and it processed a normal amount of data.
n8n covers failures with the error workflow. Missed runs and empty runs need a check outside the workflow, either a heartbeat ping or something that reads the executions through the n8n API.
For the full list of n8n failure modes and how each one is caught, see what to watch when you monitor n8n.
1. The error workflow (built in)
Create a workflow that starts with an Error Trigger node and sends a Slack message or an email. Then select it as the error workflow in the settings of each production workflow. It's free and fast.
It only runs when an automatic execution ends in an error. It can't see a workflow that stopped running, a run with 0 items, or a node that uses Continue on Fail. It also runs on the same instance, so it stops if the instance stops.
2. A heartbeat ping
Add an HTTP Request node at the end of each workflow that calls a heartbeat URL from an uptime or cron-monitoring service. If the ping doesn't arrive on time, the service alerts you. Setup details, including where to put the node, are in heartbeat monitoring for n8n.
This catches stopped schedules and a dead instance, because the check lives outside n8n. You have to add a node to every workflow, and the ping says the run reached the end, not that it did useful work.
3. Instance metrics
Self-hosted n8n can expose Prometheus metrics (N8N_METRICS=true) for Grafana. This tells you about the server: queue, memory, executions.
It's the right tool for the infrastructure, and it's too coarse to say which client's workflow stopped.
4. Reading executions through the n8n API
A monitor outside n8n reads each workflow's executions with an API key. It compares them with the expected schedule, the usual item counts and the error status, and alerts per workflow.
This covers missed runs, errors and empty runs without changing your workflows. You can build it yourself as a scheduled job outside the instance, or use a service. Outcomewatch does this, and for GoHighLevel it also checks that the texts were delivered.
Which one to use
For a few internal workflows, the error workflow plus a heartbeat on the critical ones is enough. For client workflows that run unattended, add a check that reads executions, because the failures clients notice are mostly the silent ones.
| Error workflow | Heartbeat | Metrics | API monitor | |
|---|---|---|---|---|
| Execution ends in an error | Yes | If the ping is skipped | In aggregate | Yes |
| Workflow stops running | No | Yes | No | Yes |
| Run succeeds with 0 items | No | No | No | Yes |
| Instance down | No | Yes | Yes | Yes |
| Changes to each workflow | A setting | A node | None | None |
FAQ
- Does n8n have built-in monitoring?
- It has the error workflow for failed executions and, on self-hosted, Prometheus metrics for the instance. It doesn't alert when a workflow stops running or processes nothing.
- Can I monitor n8n with an n8n workflow?
- Yes, a scheduled workflow can read executions through the n8n API. It shares the instance's fate, though: if the instance or its workers stop, the monitor stops too.
- What API access does monitoring need?
- Read access to workflows and executions. On plans with scoped API keys, choose workflow:read, workflow:list, execution:read and execution:list.
Sources
Updated .