[Demo] Instance Monitoring for many self-hosted n8n instances#147
Draft
konstantintieber wants to merge 12 commits into
Draft
[Demo] Instance Monitoring for many self-hosted n8n instances#147konstantintieber wants to merge 12 commits into
konstantintieber wants to merge 12 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Demo video: https://www.loom.com/share/ca2f66a2744b4167bfaf1392d84a7198
A sample implementation of this guide: https://www.notion.so/n8n/OEM-Guide-How-to-track-billable-executions-across-instances-35d5b6e0c94f80f4b136c6a32cd67495
How to test:
Follow this readme: https://github.com/n8n-io/n8n-hosting/blob/b6e9f1a56a9827370dc76f478f17eb881e910092/local-cluster/README.md#prerequisites
Type of Change
Related Issues
Fixes # (issue)
Relates to # (issue)
Screenshots
Summary by cubic
Adds a local demo that spins up three n8n instances plus an instance-monitoring service that pulls Insights Public API data via token exchange to track billable executions across instances. Supports LIGO-496 by showing the recommended pull-and-store pattern with a simple dashboard.
n8n-1..3) via Helm, standalone SQLite, image preloadn8nio/n8n:local, and background port-forwards (5678–5680).N8N_TOKEN_EXCHANGE_*, issuerhttps://instance-monitoring.local,allowedRoles=["global:admin"])./rest/auth/oauth/token, calls/api/v1/insights/summary, stores per‑instance daily totals in SQLite PVC, serves a dashboard at/dashboard(localhost:5700). Poll interval viaPOLL_INTERVAL_SECONDS.make up/down), optional.envinjection, reduced local resources, and new log helpers:make logs <namespace>andmake logs monitoring; setsN8N_INSIGHTS_COMPACTION_INTERVAL_MINUTES=1for fresher data.Written for commit b6e9f1a. Summary will update on new commits. Review in cubic