Skip to content

Instantly share code, notes, and snippets.

@tanmay-bhat
Last active March 31, 2022 09:36
Show Gist options
  • Save tanmay-bhat/e6ddcf831b1e8cbfda7bbb45fa146d23 to your computer and use it in GitHub Desktop.
Save tanmay-bhat/e6ddcf831b1e8cbfda7bbb45fa146d23 to your computer and use it in GitHub Desktop.
Configure Readiness Probe alert in Prometheus for Kubernetes
### ALert Configuration
- alert: KubePodReadinessFailure
annotations:
description: Readiness probe for the Pod {{ $labels.pod }} is failing for last 10 minutes
expr: sum by(pod)( kube_pod_info{created_by_kind!="Job"} AND ON (pod, namespace) kube_pod_status_ready{condition="false"} == 1) > 0
for: 10m
labels:
severity: warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment