Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Every Monday at 8am
  2. Run report now
  3. Set report settings
  4. Read version from metrics
  5. Run security audit
  6. Get n8n releases from GitHub
  7. Get failed executions
  8. Get workflow names
  9. Build health report
  10. Send report by email

Similar automations