Repository navigation
v0.1.5: components.logging — Grafana datasource for an external Loki - #33
Merged
Merged
Conversation
Same shape as components.tracing (root.external now serves both): enabled + external.queryUrl (+ endpoint for reference) add a Loki datasource (uid loki) as provisioning file loki.yaml. No Application, no collector. Without the key the render is exactly as in 0.1.4. check refuses enabled without queryUrl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MIERAI
added a commit
that referenced
this pull request
Nov 23, 2026
…#34) Forward-port of #33 (v0.1.5) to main: `components.logging` — a Grafana datasource for an external Loki (opt-in, external only; same shape as `components.tracing`). Same commit cherry-picked; CHANGELOG entry under [Unreleased] → Added ("Also released for 0.1.x as 0.1.5"). `scripts/test.sh` passes locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <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.
Why
Logs go to Loki on a machine outside the clusters (the reference installation: a phone that observes production but is not part of how requests are served). Grafana needs a datasource for it, set up the same way as
components.tracing(v0.1.4).What
components.logging(top level and per cluster):enabled(default false),external.queryUrl(required when enabled), andexternal.endpoint(the push API, for reference only). It adds a Loki datasource (uidloki) asgrafana.datasources."loki.yaml", next totempo.yamlwhen both are on. It installs no Application, no Loki and no collector.root.tracingbecomesroot.external, which handles both components; tracing's error message is unchanged.checkrefusal, docs ("Logs" section, key table, components table), platform.example.yaml and CHANGELOG 0.1.5 are updated.Backward compatibility
ci/platform.yamlprod/lab:helm templateoutput is byte-identical to v0.1.4.Tests
scripts/test.shpasses locally. It addsRootChart.test_logging(off is the same as base, only the datasource is added, it sits alongside Tempo, and tracing alone renders the same as 0.1.4) andExistingRepository.test_logging.Release
The base is
release/0.1(= v0.1.4). After merging, tag v0.1.5 (not marked latest) and forward-port to main.🤖 Generated with Claude Code