Skip to content

fix(monitoring): the alloy-metrics write-ahead log survives a pod restart #1967

Description

@dan-petty

Friction

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

Existing tool considered

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

  1. added
    source/agent
    type/bug
    on Oct 23, 2026
  2. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/bug. The candidate fixes a problem with data loss during pod restarts.
    • Priority: P1-High. The issue causes loss of monitoring data during pod restarts.
    • Value: High. Users lose important metrics when pods restart unexpectedly.
    • Effort: Medium. The fix requires changes to StatefulSet configuration and documentation.
  3. added a commit that references this issue on Oct 24, 2026
    6310236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions