Code Monkey home page Code Monkey logo

kibana-software-metrics's Introduction

kibana-software-metrics

Utilities to gather software metrics from tools (SONAR, etc) and store them into ElasticSearch for later display using Kibana.

How to Run

You haver to make sure you have docker support in your machine - either native or with boot2docker or similar alternatives such as docker toolbox.

After you git clone this project, you need to:

  • Build the docker image: docker build -rm -t=elasticsearch-kibana .
  • Run the elasticsearch & kibana servers under docker: docker run -d -p 8000:8000 -p 9200:9200 elasticsearch-kibana
  • If you are running boot2docker or similar ones under VirtualBox, make sure to define port forwards in VirtualBox for these 2 ports (8000 and 9200) in Settings/Network/Port Forwarding.
  • Wait 2 or 3 minutes for the services to be running
  • Populate elasticsearch with some data:
  • Visit http://localhost:8000
  • Create an index in Kibana, to start: s101-*
  • Create dashboards as you wish to visualize the data

Gotchas

If you run the script twice, the data will be logged twice. There is no checking for "but I have already submitted this data before". We plan to add command-line flags such as --afterDate and --upToDate so you can run multiple times and process data by "time slices". This could be used in a continuous build, for example.

Tip

If you are experimenting and want to toss all the data, the quick&dirty solution is to destroy the docker image running the servers and recreate it.

  • docker ps
  • docker stop
  • docker rm

To kill all zombie docker images:

  • docker rm -v $(docker ps -aq -f status=exited)
  • docker rmi -f $(docker images -f "dangling=true" -q)
  • docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes

kibana-software-metrics's People

Contributors

sglebs avatar

Watchers

 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.