Skip to content

Commit 69ed13b

Browse files
Merge pull request #50 from utilitywarehouse/fix-containerOOM
Fix the join on the ContainerOOMing alert
2 parents 2fb0e02 + a0628a5 commit 69ed13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/container.yaml.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ groups:
2727
action: "Investigate CPU consumption and adjust pods resources if needed."
2828
dashboard: "https://grafana.$ENVIRONMENT.$PROVIDER.uw.systems/d/VAE0wIcik/kubernetes-pod-resources?orgId=1&refresh=1m&from=now-12h&to=now&var-instance=All&var-namespace={{ $labels.namespace }}"
2929
- alert: ContainerOOMing
30-
expr: kube_pod_container_status_last_terminated_reason{reason="OOMKilled"} and on (container) kube_pod_container_status_ready == 0
30+
expr: kube_pod_container_status_last_terminated_reason{reason="OOMKilled"} and on (container,pod) kube_pod_container_status_ready == 0
3131
for: 5m
3232
annotations:
3333
summary: "Container {{$labels.namespace}}/{{$labels.pod}}/{{$labels.container}} has been OOMKilled recently and it's not ready"

0 commit comments

Comments
 (0)