fix(rule): fixing KubernetesOutOfCapacity (#227)

This commit is contained in:
Samuel Berthe 2021-10-17 17:14:44 +02:00
parent a978cfb5a1
commit 7857afab6e
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -1507,7 +1507,7 @@ groups:
for: 2m
- name: Kubernetes out of capacity
description: "{{ $labels.node }} is out of capacity"
query: 'sum by (node) ((kube_pod_status_phase{phase="Running"} == 1) + on(pod, namespace) group_left(node) (0 * kube_pod_info)) / sum(kube_node_status_allocatable_pods) by (node) * 100 > 90'
query: 'sum by (node) ((kube_pod_status_phase{phase="Running"} == 1) + on(uid) group_left(node) (0 * kube_pod_info{pod_template_hash=""})) / sum by (node) (kube_node_status_allocatable{resource="pods"}) * 100 > 90'
severity: warning
for: 2m
- name: Kubernetes container oom killer