Giter Site home page Giter Site logo

vagrant-docker-elk-grafana's Introduction

Vagrant Docker ELK Grafana

A simple Vagrantfile for Docker, ELK stack & Grafana

Prerequesits:

  • Git
  • Oracle Virtual box
  • Vagrant

Vagrantfile Job:

  1. Creates an Ubuntu 18.04 VM with 2 CPU's and 2048 MB Ram memory
  2. Installs Docker & Docker-compose on first startup (provision)
  3. Clones a Git repository containing docker-compose.yml file which creates 3 services:
    • Elastic search
    • Kibana
    • Logstash
    • Grafana
  4. Creates port forwarding for all services:
    • Port 9200 for Elastic search
    • Port 5601 for Kibana
    • Port 5000 for Logstash
    • Port 3000 for Grafana
  5. every startup (Vagrant up) the docker-compose file will run and start all services.

Initial setup:

$ git clone https://github.com/Dgotlieb/Vagrant-Docker-ELK-Grafana.git 
$ cd Vagrant-Docker-ELK-Grafana
$ vagrant up

How to use:

Elastic search:

Post some data to localhost 9200.

for example:

http://localhost:9200/my_app/user 

{
"name":"user",
"id": 123
 }

Kibana :

Enter localhost:5601

Logstash

Send data over TCP to localhost:5000

To make it easier, run send.py file:

 $ vagrant ssh
 $ Python send.py  

Grafana

Enter localhost:3000

 Username: admin
 Password: admin

vagrant-docker-elk-grafana's People

Contributors

dgotlieb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.