Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Send weekly self-hosted instance health reports via Prometheus, GitHub and SMTP email
On a schedule, it automates developer work using SMTP Email, n8n API, GitHub.
What it does
## Weekly health report for your self-hosted n8n instance Once a week, this workflow checks which n8n version you are running against the latest releases on GitHub, runs n8n's built-in security audit, and summarises every failed execution from the past week. You get one email with what needs attention. Self-hosted n8n gets frequent security fixes, and they are often backported to older release lines. This report tells you when your line has a newer patch, not just when a new major version is out. ### How it works 1. Reads the running version from the instance's Prometheus metrics endpoint. 2. Runs the security audit (instance category), which also flags missing updates and security fixes. 3. Pulls recent stable releases from the n8n GitHub repository. 4. Lists failed executions through the n8n API and groups them by workflow. 5. Builds an HTML report and emails it. ### Setup 1. Set N8N_METRICS=true on the instance and restart it (see the red note). 2. Create an n8n API key (Settings > n8n API) and an n8n API credential with base URL https://your-n8n-host/api/v1. Select it in the three n8n nodes. 3. Create an SMTP credential and select it in Send report by email. 4. Fill in Set report settings: your public n8n URL, recipients and look-back window. 5. Run it once manually, then activate it. ### Customization tips - Replace the email node with Slack or Microsoft Teams; the report is also available as plain text in summary. - Change the schedule to daily if you run many production workflows.
The steps
- Every Monday at 8am
- Run report now
- Set report settings
- Read version from metrics
- Run security audit
- Get n8n releases from GitHub
- Get failed executions
- Get workflow names
- Build health report
- Send report by email
Similar automations
Code, Git & Developer ToolsInstall and Update NPM Packages on Self-Hosted n8n7 stepsDocuments, PDF & OCRExtract Personal Data with a Self-Hosted Mistral NeMo LLM7 stepsAI Agents & AssistantsExtract Personal Data with a Self-Hosted Mistral NeMo LLM7 stepsAI Agents & AssistantsExtract Personal Data with a Self-Hosted Mistral LLM9 steps