Monitor-Stack build on Vagrant & Docker.
THIS IS FOR DEMO ONLY.
it can be done in many ways. for example, you can use ansible_local with vagrant.
stack tool was build for internal use to check the stack while I was building it.
the stack tool is only checking some response code and regex. it can be edit and add more tests as needed.
in this stack you will find:
- ELK Stack
- Grafana Dashboard
- Prometheus Server
- Graphite
everything will be provisioned using the stacktool.py included in this repo.
The stack builds on top Ubuntu VM using Vagrant to provision, docker & Docker Swarm
to run the services.
after installing the stack you can access it via http://localhost:port
Before starting, please install the dependencies
- Vagrant - https://www.vagrantup.com/downloads.html
- Python3.x - https://www.python.org/downloads/
- VirtualBox - https://www.virtualbox.org/wiki/Downloads
- Install requirements.txt (python requests)
pip install requirements.txt
or
pip install requests
to start working with the stack, you simply need to run stacktool.py up
git clone https://github.com/gmoshiko/stack-monitoring
cd stack-monitoring
chmod +x stacktool.py
./stacktool.py up
- check the interpreter on the script
- grafana user|password admin|foobar
- ports:
9000 -> Grafana Dashboard
9001 -> Prometheus Server
9003 -> Graphite
9005 -> Kibana Dashboard
9006 -> ElasticSearch
in the end of the provision, you will get a message with everything you need.
./stacktool.py -h
./stacktool.py status
which python
Stacktool is built to maintaining and monitoring the stack.
for example, you can send any docker command and control the stack with '--cmd'
./stacktool.py docker --cmd ps
it can do even more advanced commands like that:
./stacktool.py docker --cmd 'logs 60cbbccec46d'
Options:
- up - bring the stack up.
- purge - deleting the stack.
- status - health check the stack.
- docker - using for docker commands.
- vagrant - using for vagrant commands.
Moshiko Gueta [email protected]
- 0.1
- Initial Release