Commit b91c3c0e authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

Updated KubernetesPodNotHealthy alert expression and description

parent 983de830
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -96,13 +96,13 @@ additionalPrometheusRulesMap:
          summary: Kubernetes pod crash looping (instance {{ $labels.instance }})
          description: Pod {{ $labels.pod }} is crash looping\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}
      - alert: KubernetesPodNotHealthy
        expr: min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[1h:]) > 0
        expr: min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[15m:]) > 0
        for: 5m
        labels:
          severity: critical
        annotations:
          summary: Kubernetes Pod not healthy (instance {{ $labels.instance }})
          description: Pod has been in a non-ready state for longer than an hour.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}
          description: Pod has been in a non-ready state for more than 5 minutes in the last 15 minutes.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}

alertmanager:
  enabled: true