You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(monitoring): the alloy-metrics write-ahead log survives a pod restart #1967
The alloy-metrics collector runs as a StatefulSet with no volume claim, so its write-ahead log lives in the pod's own filesystem. When the pod restarts, Alloy loses the samples that it buffered but did not send, for example during a Prometheus outage.
Evidence
k8s/monitoring/k8s-monitoring-values.yaml gives collectors.alloy-metrics the presets clustered and statefulset. The k8s-monitoring 4.5.2 statefulset preset sets only controller.type and replicas; it adds no volumeClaimTemplates.
A StatefulSet cannot change volumeClaimTemplates in place. An Argo CD sync of that change fails until the old StatefulSet is deleted with --cascade=orphan.
The Alloy chart's controller.volumeClaimTemplates and alloy.storagePath persist the WAL. The cluster's local-path StorageClass provides the volume. Nothing is built.
Proposed remedy
Add a volume claim for the WAL through controller.volumeClaimTemplates and point alloy.storagePath at it. At deploy time, delete the StatefulSet with --cascade=orphan so the new one adopts the pod, and record the step in k8s/README.md.
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a problem with data loss during pod restarts.The issue causes loss of monitoring data during pod restarts.Users lose important metrics when pods restart unexpectedly.The fix requires changes to StatefulSet configuration and documentation.fix(monitoring): the alloy-metrics write-ahead log survives a pod res…
docs(k8s): the alloy write-ahead log step deletes the adopted pod, be…
fix(k8s): stateful local-path volumes bind on nodes with disk headroo…
chore(main): release 0.4.0 (#1960)