Feat/n8n stdout log#12
Open
josephMG wants to merge 3 commits into
Open
Conversation
- Enable n8n Prometheus metrics (N8N_METRICS, queue metrics) on main + worker, scrape via new prometheus n8n job, visualize with Grafana dashboard 24474. - Add Grafana Alloy service to ship all container stdout/stderr to Loki. - Re-source nvidia/arm64 DCGM exporter to nvcr.io (multi-arch, avoids Docker Hub rate limits); amd continues using the ROCm exporter. Applied identically across nvidia/amd/arm64-compose-stack.
Add a Loki "n8n stdout logs" panel under a new Logs row at the bottom of n8n.json (all three stacks), so n8n logs are visible next to its metrics without needing Explore. Existing metric panels are unchanged.
Set N8N_LOG_FORMAT=json on n8n-main/n8n-worker so stdout is one JSON object per line, and add a loki.process "n8n_json" stage (scoped to compose_service=~"n8n-.*") that extracts level/timestamp and promotes only the low-cardinality level label before forwarding to Loki write.
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.
No description provided.