Repository navigation
fix(monitoring): evaluate log or metric volume disk low alert while a pod moves - #2387
Merged
Merged
Conversation
… 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/`
Owner
Author
|
Fail-to-pass:
|
dan-petty
marked this pull request as ready for review
October 27, 2026 22:00
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>
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.
LogOrMetricVolumeDiskLowink8s/monitoring/prometheus-values.yamljoinedkube_pod_infowithgroup_left (node).While a pod moves between nodes,
kube_pod_infohas 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_infosits on the left ofgroup_left (persistentvolumeclaim).The right side aggregates
kube_pod_spec_volumes_persistentvolumeclaims_infoto 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/