-
Notifications
You must be signed in to change notification settings - Fork 3
/
container-memory-usage.json
25 lines (25 loc) · 1.01 KB
/
container-memory-usage.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 Container Memory Usage",
"type": "query alert",
"query": "avg(last_5m):max:kubernetes.memory.usage{*} by {kube_container_name,kube_cluster_name} / max:kubernetes.memory.limits{*} by {kube_container_name,kube_cluster_name} * 100 >= 80",
"message": "{{#is_alert}}\nOver the last five minutes, the {{kube_container_name.name}} container on the {{kube_cluster_name.name}} cluster used {{value}}% of its memory.\n{{/is_alert}}\n{{#is_recovery}}\nMemory usage has returned to normal for the {{kube_container_name.name}} container on the {{kube_cluster_name.name}} cluster.\n{{/is_recovery}}",
"tags": [],
"options": {
"notify_audit": false,
"locked": true,
"timeout_h": 0,
"silenced": {},
"include_tags": true,
"thresholds": {
"critical": 80,
"critical_recovery": 50
},
"new_host_delay": 300,
"require_full_window": false,
"notify_no_data": false,
"renotify_interval": 0,
"evaluation_delay": null
},
"priority": null,
"restricted_roles": null
}