n8n monitoring
Separate n8n process availability, database readiness, and real workflow execution so that an HTTP 200 on the main instance does not hide a queue outage.
Last updated
On this page (5)
n8n · Monitoring
Before you start
- Self-hosted n8n with access to deployment settings and an internal metrics collector.
- For queue mode, access to the worker targets and a harmless test webhook.
Procedure
- Probe
/healthzfor process reachability and/healthz/readinessfor database connectivity and completed migrations. Adjust paths if the health endpoint has been customized. A passing main readiness probe does not show that a worker can complete a job. - Enable
N8N_METRICS=trueon instances to be scraped andQUEUE_HEALTH_CHECK_ACTIVE=trueon queue workers. Keep scrape targets on a private monitoring path and label main and worker targets separately. Alert when a target disappears as well as when it reports a bad value. - Run a scheduled synthetic request against a published test workflow that returns a known result through a worker. Use a webhook response returned after execution, not an immediate acknowledgment that could pass while jobs are stuck. Route probe, scrape and synthetic failures separately.
- For business workflows, attach an error workflow that starts with Error Trigger. Include the workflow name and execution link when available, not input payloads or credentials. Test it using a published staging workflow invoked automatically; a manual execution is not a test of the error hook.
Verify the result
- Main liveness and readiness return 200 when healthy, workers appear as independent scrape targets, and /metrics is not exposed publicly.
- In staging, pause worker processing briefly and verify that the synthetic check alerts even if the main health probe still succeeds.
