Hi everyone,
I’ve published a Grafana data source plugin for n8n. It’s now in the official Grafana plugin catalog:
Why: On self-hosted n8n you can monitor through the Prometheus /metrics endpoint or query the PostgreSQL database (I published dashboards for both earlier: 24474 and 24475). n8n Cloud offers neither. The plugin
uses the n8n public API instead, so it works the same way for n8n Cloud and self-hosted n8n, with only a URL and an API key.
What you get:
- Execution tables with links into the n8n editor
- Time series by status, success and error rate, duration percentiles (p50/p90/p99), per workflow or in total
- Long-term aggregates from n8n Insights, which survive execution pruning
- Workflow inventory and the security audit
- Grafana alerting, e.g. “error rate of workflow X above 5 %”
- A ready-made dashboard, “n8n Workflow Executions (API)”
Setup:
- In n8n: Settings → n8n API → create a key (read scopes are enough; ideally for a dedicated user)
- In Grafana: install “n8n” from the plugin catalog
- Add the data source with your URL (https://.app.n8n.cloud/api/v1 or http://:5678/api/v1) and the key, then import the bundled dashboard
Good to know:
- The public API is not available in the n8n Cloud free trial
- Execution history is limited by n8n’s pruning (default 14 days self-hosted, plan-dependent on Cloud); Insights covers longer periods
- If workflows don’t save successful executions, success rates calculated from the execution list are too low. The plugin points this out
- The plugin only sends read requests
Source and docs: GitHub - nluecke/grafana-n8n-datasource: Grafana data source for n8n Cloud and self-hosted n8n via the n8n public API: executions, statistics, Insights, alerting, bundled dashboard · GitHub
It’s a community project, not affiliated with n8n GmbH. Feedback, issues and feature ideas are very welcome!