-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment-replicas-available.json
25 lines (25 loc) · 1.11 KB
/
deployment-replicas-available.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 Deployments Replica Not Available",
"type": "query alert",
"query": "avg(last_15m):avg:kubernetes_state.deployment.replicas_desired{*} by {kube_namespace,kube_deployment,kube_cluster_name} - avg:kubernetes_state.deployment.replicas_available{*} by {kube_namespace,kube_deployment,kube_cluster_name} >= 2",
"message": "{{#is_alert}}\n{{value}} Deployments Replica's pods are down on the {{kube_cluster_name.name}} cluster in Deployment {{kube_namespace.name}}/{{kube_deployment.name}}.\n{{/is_alert}}\n{{#is_recovery}}\nDeployments Replica's pods have recovered in Cluster {{kube_cluster_name.name}} and Deployment {{kube_namespace.name}}/{{kube_deployment.name}}.\n{{/is_recovery}}",
"tags": [],
"options": {
"notify_audit": false,
"locked": true,
"timeout_h": 0,
"silenced": {},
"include_tags": true,
"thresholds": {
"critical": 2,
"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
}