Skip to content

fix(monitoring): evaluate log or metric volume disk low alert while a pod moves - #2387

Merged
dan-petty merged 1 commit into
mainfrom
fix/2148-log-or-metric-volume-disk-low
Oct 27, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2148-log-or-metric-volume-disk-low

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

LogOrMetricVolumeDiskLow in k8s/monitoring/prometheus-values.yaml joined 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.
Prometheus refuses the rule with "many-to-many matching not allowed", so the alert does not evaluate.

This change reorders the inner join so kube_pod_info sits on the left of group_left (persistentvolumeclaim).
The right side aggregates kube_pod_spec_volumes_persistentvolumeclaims_info to guarantee at most one series per pod claim.
When a pod moves between nodes, Prometheus allows the many-to-one match and evaluates the alert without error.

Closes #2148

Change: openspec/changes/archive/2026-10-27-2148-log-or-metric-volume-disk-low/

… pod moves

`LogOrMetricVolumeDiskLow` in `k8s/monitoring/prometheus-values.yaml` joined `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.
Prometheus refuses the rule with "many-to-many matching not allowed", so the alert does not evaluate.

This change reorders the inner join so `kube_pod_info` sits on the left of `group_left (persistentvolumeclaim)`.
The right side aggregates `kube_pod_spec_volumes_persistentvolumeclaims_info` to guarantee at most one series per pod claim.
When a pod moves between nodes, Prometheus allows the many-to-one match and evaluates the alert without error.

Closes #2148

Change: `openspec/changes/archive/2026-10-27-2148-log-or-metric-volume-disk-low/`
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass: devops ci fail-to-pass --base origin/main reports 1 failed on base (1 failed and 21 passed in tests/test_k8s_monitoring_alerting.py; 0 errored):

  • tests.test_k8s_monitoring_alerting::test_the_log_or_metric_volume_disk_rule_evaluates_while_a_pod_moves failed on base and passes on head.

@dan-petty
dan-petty marked this pull request as ready for review October 27, 2026 22:00
@dan-petty
dan-petty merged commit 7b381ea into main Oct 27, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/2148-log-or-metric-volume-disk-low branch October 27, 2026 22:02
dan-petty pushed a commit that referenced this pull request Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.8.1](v0.8.0...v0.8.1)
(2026-10-27)


### Bug Fixes

* **devcontainer:** provide reset remedy on wrong keyring password
([#2390](#2390))
([5031b1d](5031b1d))
* **k8s:** the --stack help of deploy-stack names every stack that the
command accepts
([#2388](#2388))
([69fe9b3](69fe9b3))
* **monitoring:** evaluate log or metric volume disk low alert while a
pod moves ([#2387](#2387))
([7b381ea](7b381ea))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant