-
Notifications
You must be signed in to change notification settings - Fork 3
/
pod-crashloopbackoff.json
25 lines (25 loc) · 1.05 KB
/
pod-crashloopbackoff.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"name": "Kubernetes Pod CrashloopBackOff",
"type": "query alert",
"query": "max(last_10m):sum:kubernetes_state.container.status_report.count.waiting{reason:crashloopbackoff} by {kube_cluster_name,kube_namespace} >= 4",
"message": "{{#is_alert}}\nPod {{pod_name.name}} in cluster {{kube_cluster_name.name}} is in CrashloopBackOff on namespace {{kube_namespace.name}}.\n\nThis alert could generate several alerts for a bad deployment. Adjust the thresholds of the query to suit your infrastructure.\n{{/is_alert}}\n{{#is_recovery}}\nPod {{pod_name.name}} in cluster {{kube_cluster_name.name}} is no longer in CrashloopBackOff.\n{{/is_recovery}}",
"tags": [],
"options": {
"notify_audit": false,
"locked": true,
"timeout_h": 0,
"silenced": {},
"include_tags": true,
"thresholds": {
"critical": 4,
"critical_recovery": 0
},
"new_host_delay": 300,
"require_full_window": false,
"notify_no_data": false,
"renotify_interval": 0,
"evaluation_delay": null
},
"priority": null,
"restricted_roles": null
}