Due to the need to track resource consumption statistics by containers within hots, a template for monitoring the information contained in the DockerStats of each container via LLD (Low Level Discovery) was developed.
To configure docker container monitoring, follow the steps below:
- Add UserParameter lines in zabbix_agentd.conf
- EnableRemoteCommands = 1
- LogRemoteCommands = 1
- Add template "Template Docker Monitor" on Zabbix host
- Docker Version
- Docker Swarm status
- Count Stopped docker Containers
- Count Running docker Containers
- Count Paused docker Containers
- Count docker Images
- Count docker Containers
- Check if docker node TLS is accepting connections
- Container CPU used in %: {#CNAME}
- Container Memory max {#CNAME}
- Container Memory used in % {#CNAME}
- Container Memory used {#CNAME}
- Container PID {#CNAME}
- Container PORT {#CNAME}
- Container Received traffic {#CNAME}
- Container Sent traffic {#CNAME}