Docker-monitor is a service which alerts user (email) when any container (nginx, postgres and httpd in this case) goes down in the cluster.
Demo https://www.youtube.com/watch?v=GpWLrkKTz9s
Documentation https://docs.google.com/presentation/d/1MUInovYWCJx-H9qyqGEuA5BvkRiGTVAnt5V7idEOKcI
-
docker-monitor: The main service that polls running containers, pushes data to influx and listens for request from client
-
influxdb: Time-series database used to store metrics of the containers
- Checkout the deployment files:
git clone https://github.com/hackathon-2K17-CloudConquerors/docker-monitor.git
cd docker-monitor/deployments/docker-compose
- Create the configuration file: (keeping everything by default should be fine)
modify entries in config.env
- Start the containers:
docker-compose up
NOTE: To install dependecies automatically, do a glide install
- Checkout to the root directory:
cd docker-monitor
glide install
- Package the project
make package
- Use docker registry (optional)
Change BUILD_NUMBER and DOCKER_REGISTRY in the Makefile
make docker_push
- docker-monitor requires access to the Docker event API socket (
/var/run/docker.sock
by default) - docker-monitor requires privileged access.