[Kubernetes] Update OOMKill OOTB Dashboards #23266
Open
Conversation
justin-lesko
approved these changes
Apr 10, 2026
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.
What does this PR do?
Updates the "Containers OOM Killed" widget on the Kubernetes Pods and Kubernetes Clusters OOTB dashboards. Replaces the old graphed metric with
clamp_min(diff(restarts), 0) * last_state.terminated{reason:oomkilled}, usingrestartsas the event trigger andlast_state.terminatedas an "OOM filter".This also meant that we need to group by both
pod_nameandkube_container_name, because otherwise we get situations where a pod with many containers can see massive overcounting for a single OOM kill (nOOM kills can be overcounted ton(n-1)/2).The fractional values sometimes visible are a known artifact of the kubelet check not reporting restarts during a container's restart window, which means that there is a small metric gap. Thus taking the diff/derivative over that spreads the increment in restart over multiple points.
Motivation
CONTINT-5192, FSCONS-1115
Review checklist (to be filled by reviewers)
qa/skip-qalabel if the PR doesn't need to be tested during QA.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged