Repository navigation
Log shipping on the lab: Grafana Alloy → Loki on the phone - #145
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Rendered diff (as Argo CD renders: kustomize / Helm, against
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
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.
Every pod's logs go from the lab to Grafana Loki 3.7.10 on the phone. The phone is the independent third party: it observes the clusters but is not in their request path. This is the lab first; the laptop follows after a soak of at least 1h, as a separate PR.
platform/log-shipping(base +lab/laptopoverlays; onlylabis used here). It runs Grafana Alloymirror.gcr.io/grafana/alloy:v1.22.0, a 1-replica Deployment (both clusters are single-node), withRecreaterollouts so the same lines are never shipped twice.loki.source.kubernetes, so it needs no hostPath and doesn't run as root (uid 473). The filesystem is read-only, it is restricted to pods/log, pods and namespaces, and it drops all capabilities.namespace,pod,container,app, plus the external labelcluster=lab. Pods that are not Running are skipped.loki.writeretries a batch 6 times with backoff (at most 30 s apart), then drops it. Meanwhile the source waits and keeps its position, so memory stays bounded (GOMEMLIMIT160MiB, limit 192Mi, request 20m/96Mi) and the workloads are not affected.loki_write_*sent/dropped counters into the cluster's Prometheus.alloy validate --stability.level=generally-availableusing the pinned image.clusters/lab/extras: new Applicationplatform-log-shipping, namespacelog-shipping(CreateNamespace). It isn't covered by the lab sync window.:3100(push, query and/metrics). It keeps 30 days (compactor), has an emergency 40 GB disk brake, accepts at most 2 MB/s, is managed by~/services.shand the watchdog, and the phone's Prometheus scrapes it with an alert rulePhoneLokiDown.Render evidence (product render.py v0.1.4, main → this branch):
extras-lab, which gains one Applicationplatform-log-shipping.kubectl kustomize platform/log-shipping-lab): ServiceAccount, ClusterRole, ClusterRoleBinding, ConfigMap, Deployment, PodMonitor.Resources on the lab: +96Mi request. Node requests are currently 4888Mi (77%) and dropping, since the lab cleanup is under way.
🤖 Generated with Claude Code