master
conf 33 lines 1.17 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 template: docker_container_unhealthy
4 on: docker.container_health_status
5 class: Errors
6 type: Containers
7 component: Docker
8 units: status
9 every: 10s
10 lookup: average -10s of unhealthy
11 warn: $this > 0
12 summary: Docker container ${label:container_name} health
13 info: ${label:container_name} docker container health status is unhealthy
14 to: sysadmin
15
16 # This alert monitors the status of Docker containers and triggers if any container is exited (down).
17 # To enable this alert for specific containers, you need to modify the "chart labels" filter.
18 # This filter uses Netdata's simple pattern matching syntax.
19
20 template: docker_container_down
21 on: docker.container_state
22 class: Errors
23 type: Containers
24 component: Docker
25 chart labels: container_name=!*
26 units: status
27 every: 10s
28 lookup: average -10s of exited
29 warn: $this > 0
30 delay: down 1m multiplier 1.5 max 2h
31 summary: Docker container ${label:container_name} down
32 info: Docker container ${label:container_name} is currently not running
33 to: sysadmin