n8n-guard

v0.1.0
io.github.flow-84/n8n-guard Checked 1 day ago Published 21 days ago

Read-only health checks for self-hosted n8n: datastore growth, stuck runs, retention, git drift.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

instance_info Instance info

Reachability, configuration and workflow inventory of the monitored n8n instance. Start here: it shows which checks are configured and which are not.

db_health Database health

Size, per-table breakdown and growth rate of the n8n datastore, plus an estimate of when it hits the critical threshold. Works on SQLite and Postgres. The n8n Public API has no endpoint for this.

stuck_executions Stuck executions

Executions sitting in `running` past a threshold or far past their own workflow's median runtime. Listing by status is not detection: this compares against a baseline.

ParameterTypeDescription
threshold_minutesnumberMinutes a run may stay in `running` before it counts as stuck. Defaults to N8N_GUARD_STUCK_MINUTES.

retention_report Retention report

How many execution records are stored, how far back they go, and what pruning to a retention window would free. Read-only: n8n-guard never deletes anything.

ParameterTypeDescription
keep_daysnumberRetention window to evaluate, in days. Defaults to 30.

git_drift Git drift

Diffs the workflows in the running instance against the JSON exports in a git checkout: live but unexported, exported but deleted, and content that has drifted apart.

guard_run Full guard run

Runs every check in one resilient sweep. Individual steps retry and, if they still fail, are reported as findings while the remaining checks finish. Use this for scheduled monitoring.

ParameterTypeDescription
keep_daysnumberRetention window used by the retention step. Defaults to 30.