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

  1. Probe /healthz for process reachability and /healthz/readiness for 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.
  2. Enable N8N_METRICS=true on instances to be scraped and QUEUE_HEALTH_CHECK_ACTIVE=true on 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.
  3. 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.
  4. 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.

Official documentation

Have Pilae operate n8n

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.