Skip to content

v0.1.5: components.logging — Grafana datasource for an external Loki - #33

Merged
MIERAI merged 1 commit into
release/0.1from
feat/external-logging-0.1
Nov 23, 2026
Merged

MIERAI merged 1 commit into
release/0.1from
feat/external-logging-0.1

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 23, 2026

Copy link
Copy Markdown
Owner

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), and external.endpoint (the push API, for reference only). It adds a Loki datasource (uid loki) as grafana.datasources."loki.yaml", next to tempo.yaml when both are on. It installs no Application, no Loki and no collector.
  • root.tracing becomes root.external, which handles both components; tracing's error message is unchanged.
  • Schema, the check refusal, docs ("Logs" section, key table, components table), platform.example.yaml and CHANGELOG 0.1.5 are updated.

Backward compatibility

  • ci/platform.yaml prod/lab: helm template output is byte-identical to v0.1.4.
  • Reference instance (tracing on, no logging key): the root render is identical to v0.1.4 apart from the version string.

Tests

scripts/test.sh passes locally. It adds RootChart.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) and ExistingRepository.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

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
MIERAI merged commit 9285dd5 into release/0.1 Nov 23, 2026
3 checks passed
@MIERAI
MIERAI deleted the feat/external-logging-0.1 branch November 23, 2026 09:15
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant