feat(chart): add WAL storage for alloy when eventing is enabled - #978
Open
rohan2794 wants to merge 1 commit into
Open
feat(chart): add WAL storage for alloy when eventing is enabled#978rohan2794 wants to merge 1 commit into
rohan2794 wants to merge 1 commit into
Conversation
Abhinandan-Purkait
approved these changes
Aug 13, 2026
rohan2794
force-pushed
the
alloy-wal-config
branch
from
August 13, 2026 06:22
b4cba74 to
55989b0
Compare
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
rohan2794
force-pushed
the
alloy-wal-config
branch
from
August 13, 2026 16:47
55989b0 to
c8bce62
Compare
rohan2794
force-pushed
the
alloy-wal-config
branch
from
August 14, 2026 09:30
c8bce62 to
53e8c70
Compare
- Enable alloy WAL (loki.write) with a hostPath volume on each DaemonSet
node pod, conditional on eventing.enabled. WAL buffers logs to disk
during Loki unavailability and auto-cleans segments after 1h (default).
- Scope alloy pod discovery to its own node via field selector.
Add NODE_NAME downward API env var to the alloy DaemonSet so each pod
can reference its own node name in the alloy config. Use the
discovery.kubernetes selectors block (selectors { role = "pod"; field =
"spec.nodeName=" + env("NODE_NAME") }) to scope each alloy instance to
only watch pods on its own node.
This prevents alloy daemonSet log collector
should only watch pods on its own node, not cluster-wide.
Signed-off-by: rohan2794 <rohan2794@gmial.com>
rohan2794
force-pushed
the
alloy-wal-config
branch
from
August 14, 2026 09:34
53e8c70 to
6635200
Compare
abhilashshetty04
approved these changes
Aug 21, 2026
tiagolobocastro
approved these changes
Aug 21, 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.
Add NODE_NAME downward API env var to the alloy DaemonSet so each pod
can reference its own node name in the alloy config. Use the
discovery.kubernetes selectors block (selectors { role = "pod"; field =
"spec.nodeName=" + env("NODE_NAME") }) to scope each alloy instance to
only watch pods on its own node.
This prevents alloy daemonSet log collector
should only watch pods on its own node, not cluster-wide.
Alloy had no WAL configured, so it used only an in-memory queue for buffering logs before shipping to Loki.
Scenario that triggered log loss:
Loki collected pod logs — only from node-2. Events that existed in the NATS stream were not visible via the Loki path because the eventing-aggregator pod logs were lost as eventing-aggregator pod was scheduled on node-0.
Fix: Instead of dropping logs when the in-memory queue fills, alloy writes them to disk (/var/local/alloy/wal). When Loki recovers, alloy replays the WAL. Segments older than 1h (default value) are dropped automatically if alloy is unable to push logs to Loki.