feat: add Loki log aggregation with Alloy journal forwarding#390
Merged
feat: add Loki log aggregation with Alloy journal forwarding#390
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configures Loki on glyph with filesystem storage, TSDB index, and 30-day retention. Listens on port 3100 for log ingestion from Alloy agents on all hosts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configures Grafana Alloy to read systemd journal entries and forward them to the local Loki instance with host=glyph label. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configures Grafana Alloy on spore to forward systemd journal entries to Loki on glyph over Tailscale. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configures Grafana Alloy on zeta to forward systemd journal entries to Loki on glyph over Tailscale. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds Loki on glyph as a datasource so logs from all hosts are queryable via the Grafana Explore view. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Provisioned dashboard with host selector, text search, log volume histogram, error/warning counters, and a full log stream panel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
`{_}` is a destructuring pattern that rejects extra specialArgs
like `inputs`. Use `_:` which accepts any argument set without
destructuring, satisfying both statix and the module system.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Deploy order
Test plan
nix-flake build nixosConfigurations.glyph.config.system.build.toplevelnix-flake build nixosConfigurations.spore.config.system.build.toplevelnix-flake build nixosConfigurations.zeta.config.system.build.toplevel{host="glyph"}to confirm logs are ingested🤖 Generated with Claude Code