master
conf 67 lines 2.42 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 template: cgroup_10min_cpu_usage
4 on: cgroup.cpu_limit
5 class: Utilization
6 type: Cgroups
7 component: CPU
8 host labels: _os=linux
9 lookup: average -10m unaligned
10 units: %
11 every: 1m
12 warn: $this > (($status == $CRITICAL) ? (85) : (95))
13 delay: down 15m multiplier 1.5 max 1h
14 summary: Cgroup ${label:cgroup_name} CPU utilization
15 info: Cgroup ${label:cgroup_name} average CPU utilization over the last 10 minutes
16 to: silent
17
18 template: cgroup_ram_in_use
19 on: cgroup.mem_usage
20 class: Utilization
21 type: Cgroups
22 component: Memory
23 host labels: _os=linux
24 calc: ($ram) * 100 / $memory_limit
25 units: %
26 every: 10s
27 warn: $this > (($status >= $WARNING) ? (80) : (90))
28 crit: $this > (($status == $CRITICAL) ? (90) : (98))
29 delay: down 15m multiplier 1.5 max 1h
30 summary: Cgroup ${label:cgroup_name} memory utilization
31 info: Cgroup ${label:cgroup_name} memory utilization
32 to: silent
33
34 # ---------------------------------K8s containers--------------------------------------------
35
36 template: k8s_cgroup_10min_cpu_usage
37 on: k8s.cgroup.cpu_limit
38 class: Utilization
39 type: Cgroups
40 component: CPU
41 host labels: _os=linux
42 lookup: average -10m unaligned
43 units: %
44 every: 1m
45 warn: $this > (($status >= $WARNING) ? (75) : (85))
46 delay: down 15m multiplier 1.5 max 1h
47 summary: Container ${label:k8s_container_name} pod ${label:k8s_pod_name} CPU utilization
48 info: Container ${label:k8s_container_name} of pod ${label:k8s_pod_name} of namespace ${label:k8s_namespace}, \
49 average CPU utilization over the last 10 minutes
50 to: silent
51
52 template: k8s_cgroup_ram_in_use
53 on: k8s.cgroup.mem_usage
54 class: Utilization
55 type: Cgroups
56 component: Memory
57 host labels: _os=linux
58 calc: ($ram) * 100 / $memory_limit
59 units: %
60 every: 10s
61 warn: $this > (($status >= $WARNING) ? (80) : (90))
62 crit: $this > (($status == $CRITICAL) ? (90) : (98))
63 delay: down 15m multiplier 1.5 max 1h
64 summary: Container ${label:k8s_container_name} pod ${label:k8s_pod_name} memory utilization
65 info: container ${label:k8s_container_name} of pod ${label:k8s_pod_name} of namespace ${label:k8s_namespace}, \
66 memory utilization
67 to: silent