add alert for unhealthy pod

This commit is contained in:
Aaron Riedel 2023-04-21 07:59:28 +02:00
parent a7578bf430
commit 414b7d9318
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -44,6 +44,16 @@ data:
annotations:
summary: "Free disk space below 2 GB"
description: "Disk space on server {{ $labels.node }} is under 2 GB. Plox fix. Free Space: {{ $value }} GB on partition {{ $labels.device }}"
- name: KubernetesUnhealthyPod
rules:
- alert: KubernetesUnhealthyPod
expr: kube_pod_container_status_waiting_reason = 1
for: 5m
labels:
severity: warning
annotations:
summary: "The Pod {{ $labels.pod }} is {{ $labels.reason }}""
description: "The Pod {{ $labels.pod }} is in the state {{ $labels.reason }} for more than 5m. The Pod is in namespace {{ $labels.namespace }} and on node {{ $labels.node }}."
- name: PrometheusTargetMissing
rules:
- alert: PrometheusTargetMissing