# Send weekly self-hosted instance health reports via Prometheus, GitHub and SMTP email

> Quick overview This workflow runs weekly to check your self-hosted n8n instance version and security audit status, fetches the latest stable n8n releases from GitHub, summarizes failed executions from the last week, and sends a single HTML health report via SMTP email. How it works 1. Runs every Monday at 8am (or manually) to start the report. 2. Loads report settings such as your n8n URL, metrics endpoint, look-back window, and email recipients. 3. Reads the running n8n version from the Prometheus metrics endpoint and runs the n8n instance security audit. 4. Fetches the latest stable n8n releases from the n8n-io/n8n GitHub releases API. 5. Retrieves failed n8n executions and workflow names, then groups recent failures (within the look-back window) by workflow. 6. Builds an HTML and plain-text summary with version status, audit findings, and failure counts, then sends it as an email via SMTP. Setup 1. Enable metrics on your n8n instance by setting N8NMETRICS=true and ensure the workflo

- **Domain**: `n8n-workflow-19842.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19842
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19842.n8n.io
- Documentation: https://n8n.io/workflows/19842
