Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.3] Bug 1807141: jsonnet/rules.jsonnet: Add MultipleContainersOOMKilled alert #692

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions assets/prometheus-k8s/rules.yaml
Expand Up @@ -395,6 +395,16 @@ spec:
expr: cluster:alertmanager_routing_enabled:max == 0
labels:
severity: warning
- alert: MultipleContainersOOMKilled
annotations:
message: Multiple containers were out of memory killed within the past 15
minutes.
expr: sum(max by(namespace, container, pod) (increase(kube_pod_container_status_restarts_total[12m]))
and max by(namespace, container, pod) (kube_pod_container_status_last_terminated_reason{reason="OOMKilled"})
== 1) > 5
for: 15m
labels:
severity: info
- name: openshift-ingress.rules
rules:
- expr: sum by (code) (rate(haproxy_server_http_responses_total[5m]) > 0)
Expand Down
11 changes: 11 additions & 0 deletions jsonnet/rules.jsonnet
Expand Up @@ -196,6 +196,17 @@
severity: 'warning',
},
},
{
expr: 'sum(max by(namespace, container, pod) (increase(kube_pod_container_status_restarts_total[12m])) and max by(namespace, container, pod) (kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}) == 1) > 5',
alert: 'MultipleContainersOOMKilled',
'for': '15m',
annotations: {
message: 'Multiple containers were out of memory killed within the past 15 minutes.',
},
labels: {
severity: 'info',
},
},
],
},
{
Expand Down