From d3ad3471ce0a5763a5d74533668339854628d73a Mon Sep 17 00:00:00 2001 From: Frank Stibane Date: Wed, 16 Jun 2021 15:28:06 +0200 Subject: [PATCH] chore: finetuning chrashloop alert --- infrastructure/iris-gateway/templates/monitoring/alerts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/iris-gateway/templates/monitoring/alerts.yaml b/infrastructure/iris-gateway/templates/monitoring/alerts.yaml index 8ea81615..38782432 100644 --- a/infrastructure/iris-gateway/templates/monitoring/alerts.yaml +++ b/infrastructure/iris-gateway/templates/monitoring/alerts.yaml @@ -10,7 +10,7 @@ spec: annotations: message: "Pod {{ "{{ $labels.pod }}" }} is crash looping\n LABELS: {{ "{{ $labels }}" }}" summary: Kubernetes pod repeatedly restarting - expr: increase(kube_pod_container_status_restarts_total{namespace="{{ .Release.Namespace }}"}[1m]) > 3 + expr: increase(kube_pod_container_status_restarts_total{namespace="iris-gateway"}[5m]) > 1 for: 1m labels: receiver: iris-alerts-{{ .Values.environment }}