GithubHelp home page GithubHelp logo

pchanas / kibanaratiocalculation Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 314 KB

Small plugin to be able to compute metrics like percentage

License: Apache License 2.0

JavaScript 73.50% HTML 18.94% CSS 7.57%

kibanaratiocalculation's Introduction

KibanaRatioCalculation

Small plugin to be able to compute metrics like percentage

References and Thanks

This plugin is largerly inspired from Oxalide/kibana_metric_vis_colors, Kibana legacy metric plugin and Tim Roes tutorials (many thanks to him for his clear and efficient web site).

Thanks to jpparis-orange for his valuable help on github.

How to install it

This plugin has only been tested with the following stacks:

Kibana 4
elasticsearch-2.4.3
kibana-4.6.2-darwin-x86_64

Easiest way is to download the zip file from master branch somewhere and then:

bin/kibana plugin --install ratiocalculation -u file:///<path to the zip file>

How to desinstall it

bin/kibana plugin --remove ratiocalculation

How to use it

Plugin will appear in the Kibana visualization page, select it.

Kibana visualization page

Then, as usal choose your search source, you will get this:

ratioCalcStep1

Metric field (numerator) is useless: we will just count the number of document. Bucket area allows you te select which filter you want to use or which field you xant to consider.

ratioCalcStep2

On the example, we look at "statut.raw" dans we want to know, for each possible value of this field, which percentage it represent of the whole data i.e. we compute (100 * (#document with value1 / #hits)), rounded to 2 decimals.

ratioCalcResults

As you can see you can manager colors and font sizes in the options.

My apologies

I am far to be senior developer and even far to be a developer :-) I built this plugin because it is useful for us. Feel free to correct, comment any crap code you will surely find.

kibanaratiocalculation's People

Contributors

pchanas avatar

Stargazers

MrSheep avatar  avatar Rodolphe avatar Jean-Pierre Paris avatar

Watchers

Jean-Pierre Paris avatar  avatar  avatar

kibanaratiocalculation's Issues

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.