A simple Vagrantfile for Docker, ELK stack & Grafana
- Git
- Oracle Virtual box
- Vagrant
- Creates an Ubuntu 18.04 VM with 2 CPU's and 2048 MB Ram memory
- Installs Docker & Docker-compose on first startup (provision)
- Clones a Git repository containing docker-compose.yml file which creates 3 services:
- Elastic search
- Kibana
- Logstash
- Grafana
- Creates port forwarding for all services:
- Port 9200 for Elastic search
- Port 5601 for Kibana
- Port 5000 for Logstash
- Port 3000 for Grafana
- every startup (Vagrant up) the docker-compose file will run and start all services.
$ git clone https://github.com/Dgotlieb/Vagrant-Docker-ELK-Grafana.git
$ cd Vagrant-Docker-ELK-Grafana
$ vagrant up
Post some data to localhost 9200.
for example:
http://localhost:9200/my_app/user
{
"name":"user",
"id": 123
}
Enter localhost:5601
Send data over TCP to localhost:5000
To make it easier, run send.py file:
$ vagrant ssh
$ Python send.py
Enter localhost:3000
Username: admin
Password: admin