summaryrefslogtreecommitdiffstats
path: root/health/health.d/cgroups.conf
blob: 79ece53f97dbf00da3706411ac765ffc61e3c521 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# you can disable an alarm notification by setting the 'to' line to: silent

template: cgroup_10min_cpu_usage
      on: cgroup.cpu_limit
      os: linux
   hosts: *
  lookup: average -10m unaligned
   units: %
   every: 1m
    warn: $this > (($status >= $WARNING)  ? (75) : (85))
    crit: $this > (($status == $CRITICAL) ? (85) : (95))
   delay: down 15m multiplier 1.5 max 1h
    info: cpu utilization for the last 10 minutes
      to: sysadmin

template: cgroup_ram_in_use
      on: cgroup.mem_usage
      os: linux
   hosts: *
    calc: ($ram) * 100 / $memory_limit
   units: %
   every: 10s
    warn: $this > (($status >= $WARNING)  ? (80) : (90))
    crit: $this > (($status == $CRITICAL) ? (90) : (98))
   delay: down 15m multiplier 1.5 max 1h
    info: RAM used by cgroup
      to: sysadmin

template: cgroup_ram_and_swap_in_use
      on: cgroup.mem_usage
      os: linux
   hosts: *
    calc: ($ram + $swap) * 100 / $memory_and_swap_limit
   units: %
   every: 10s
    warn: $this > (($status >= $WARNING)  ? (80) : (90))
    crit: $this > (($status == $CRITICAL) ? (90) : (98))
   delay: down 15m multiplier 1.5 max 1h
    info: RAM and Swap used by cgroup
      to: sysadmin