Skip to content

fix(monitoring): the logormetricvolumedisklow alert evaluates while a pod moves between nodes #2148

Closed

Description

@dan-petty

What happened

LogOrMetricVolumeDiskLow in k8s/monitoring/prometheus-values.yaml joins kube_pod_info with group_left (node). While a pod moves between nodes, kube_pod_info has a series for the pod on two nodes, and Prometheus refuses the rule with "many-to-many matching not allowed", so the alert does not evaluate. On 2026-10-24 the new rule LocalPathNodeDiskHigh (#1634) failed live in the same way with a group_left form, while the alloy-metrics pod moved, and #1634 wrote it with and instead.

What should happen

LogOrMetricVolumeDiskLow evaluates while a pod moves: it joins on a label set that has one series for each pod (for example with max by (namespace, pod, node) on kube_pod_info before the join, or with and as LocalPathNodeDiskHigh does).

Acceptance criteria

  • A rule test (promtool test rules, as the other alert tests do) gives kube_pod_info two series for one pod on two nodes and shows that the alert still fires for a low volume.

Source: #1634

Activity

  1. added
    source/agent
    type/bug
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 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 bug in alert evaluation during pod movement.
    • Priority: P2-Medium. This is a medium priority issue affecting monitoring accuracy during normal pod operations.
    • Value: Medium. Fixing the alert improves system observability and reliability for users.
    • Effort: Low. The fix involves changing how Prometheus joins data, which is a small change to existing code.
    • Related: fix(k8s): the volumes of grafana, the prometheus server and loki move off the control-plane node, and their placement exemptions go #2147, which asks for a different change. Both items work on volume placement and pod movement, but the candidate fixes an alert evaluation issue while the related item moves volumes off control-plane nodes.
  3. dan-petty commented on Oct 27, 2026

    @dan-petty
    OwnerAuthor

    The feasibility check for issue #2148 failed.
    The acceptance criteria require a rule test that uses promtool test rules like the other alert tests do.
    The system does not have promtool installed (which promtool returns exit status 1).
    No tests in this repository use promtool test rules.
    The alert tests in tests/test_k8s_monitoring_alerting.py use Python parsers and PromQL selector inspections.

    The design record in openspec/changes/archive/2026-10-24-2194-dashboard-local-savings/design.md previously rejected promtool test rules.
    It records that no test or CI job uses promtool, and GitHub runners do not have it.
    Also, LogOrMetricVolumeDiskLow in k8s/monitoring/prometheus-values.yaml already contains max by (namespace, pod, node) (kube_pod_info).
    Because the item cannot be built as written without compensating code, AGENTS.md Rule 2 requires returning the item to New.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions