summaryrefslogtreecommitdiffstats
path: root/src/health/health.d/docker.conf
blob: edb63a08ca06f0f5a163cd082a28979cc185f981 (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
# you can disable an alarm notification by setting the 'to' line to: silent

template: docker_container_unhealthy
       on: docker.container_health_status
    class: Errors
     type: Containers
component: Docker
    units: status
    every: 10s
   lookup: average -10s of unhealthy
     warn: $this > 0
  summary: Docker container ${label:container_name} health
     info: ${label:container_name} docker container health status is unhealthy
       to: sysadmin

# This alert monitors the status of Docker containers and triggers if any container is exited (down).
# To enable this alert for specific containers, you need to modify the "chart labels" filter.
# This filter uses Netdata's simple pattern matching syntax.

    template: docker_container_down
          on: docker.container_state
       class: Errors
        type: Containers
   component: Docker
chart labels: container_name=!*
       units: status
       every: 10s
      lookup: average -10s of exited
        warn: $this > 0
       delay: down 1m multiplier 1.5 max 2h
     summary: Docker container ${label:container_name} down
        info: Docker container ${label:container_name} is currently not running
          to: sysadmin