GithubHelp home page GithubHelp logo

seadiaz / computed-columns Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 7.0 42 KB

Visualization plugin for Kibana like a table but with computed columns

JavaScript 55.92% HTML 38.02% CSS 1.75% Shell 4.31%

computed-columns's Introduction

Computed Columns

An awesome Kibana plugin.

This visualization plugin is like a table, but with computed columns. Every new columns is a computation from normal basics columns. Every new column has it own expression (e.g. col[0] * col[1] / 100).


Considerations

  • Any mathematical expression can be used to create computed columns. Even parentheses can be used to group expressions - e.g. (col[0] - col[1]) / col[0].
  • To refence a colums use word col followed by brackets with zero base index inside - e.g. col[1] = column 1 (second column).
  • Computed column can be used to create new computed columns.
  • Multiples computed colums will be computed in order, thous, you can only use column index n-1.
  • Current Release Version: 0.4.1.
  • Hidden columns are evaluated after computed columns.

Install

From 0.5.x every release includes plugins version (x.y.z) and Kibana version (a.b.c).

From Kibana Installation Path:

./bin/kibana-plugin install https://github.com/seadiaz/computed-columns/releases/download/x.y.z/computed-columns-x.y.z-a.b.c.zip

From Docker Image:

kibana-plugin install https://github.com/seadiaz/computed-columns/releases/download/x.y.z/computed-columns-x.y.z-a.b.c.zip

Roadmap

  • Numeric data validation.
  • Hidden columns format validation.

development

See the kibana contributing guide for instructions setting up your development environment. Once you have completed that, use the following npm tasks.

  • npm start

    Start kibana and have it include this plugin

  • npm start -- --config kibana.yml

    You can pass any argument that you would normally send to bin/kibana by putting them after -- when running npm start

  • npm run build

    Build a distributable archive

  • npm run test:browser

    Run the browser tests in a real web browser

  • npm run test:server

    Run the server tests using mocha

For more information about any of these commands run npm run ${task} -- --help.

computed-columns's People

Contributors

fbaligand avatar seadiaz avatar tonykoval avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

computed-columns's Issues

Enhancement : set "Data" as visualization type

Today, standard "Data Table" visualization has "Data" as visualization type.
But "Computed Columns" visualization has "Other" as visualization type.
It would be nice to set same visualization type than standard "Data Table".

image

Does not work with Kibana 5.4.0

I have updated package.json to set 5.4.0 version.
But when I launch the plugin, there is no table displayed, but instead a blank screen.
And I have the following error in browser console :

Error: hiddenColumns is undefined
hideColumns@http://myserver:9605/bundles/kibana.bundle.js?v=15063:124:13514
@http://myserver:9605/bundles/kibana.bundle.js?v=15063:124:14809
$delegate.constructor.prototype.$watchMulti/<@http://myserver:9605/bundles/commons.bundle.js?v=15063:82:26925
$digest@http://myserver:9605/bundles/commons.bundle.js?v=15063:39:2869
$apply@http://myserver:9605/bundles/commons.bundle.js?v=15063:39:5026
done@http://myserver:9605/bundles/commons.bundle.js?v=15063:37:25016
completeRequest@http://myserver:9605/bundles/commons.bundle.js?v=15063:37:28702
createHttpBackend/</xhr.onload@http://myserver:9605/bundles/commons.bundle.js?v=15063:37:29634

Bug : incompatible with "Split Table" mode

When I add an aggregation bucket, if I choose "Split Table" option, then the resulting visualization is a "blank screen" :
image

In my browser console, I get the following error :

Error: table.columns is undefined
@http://localhost:9605/bundles/kibana.bundle.js?v=15063:131:14711
arrayEach@http://localhost:9605/bundles/commons.bundle.js?v=15063:1:10718
runInContext/createForEach/<@http://localhost:9605/bundles/commons.bundle.js?v=15063:2:2520
@http://localhost:9605/bundles/kibana.bundle.js?v=15063:131:14599
arrayEach@http://localhost:9605/bundles/commons.bundle.js?v=15063:1:10718
runInContext/createForEach/<@http://localhost:9605/bundles/commons.bundle.js?v=15063:2:2520
@http://localhost:9605/bundles/kibana.bundle.js?v=15063:131:14524
$delegate.constructor.prototype.$watchMulti/<@http://localhost:9605/bundles/commons.bundle.js?v=15063:82:26925
$digest@http://localhost:9605/bundles/commons.bundle.js?v=15063:39:2869
$apply@http://localhost:9605/bundles/commons.bundle.js?v=15063:39:5026
done@http://localhost:9605/bundles/commons.bundle.js?v=15063:37:25016
completeRequest@http://localhost:9605/bundles/commons.bundle.js?v=15063:37:28702
createHttpBackend/</xhr.onload@http://localhost:9605/bundles/commons.bundle.js?v=15063:37:29634

Kibana version : 5.4.0
Computed Columns version : v0.4.1

Dots in linechart after enabling computed-columns

Hi there,
I like your plugin very much.

However, if I enable it I have a strange side effect on linecharts: blue dots are appearing.
I cannot remove nor can change the color of the dots.
If I remove the plugin, the dots are gone; very curious case.

I use the following steps for including the plugin in my Dockerfile file:
~snip
ADD plugins/computed-columns /kibana/plugins/computed-columns
RUN cd /kibana/plugins/computed-columns && npm install
~snip
Compilation succeed and I can use the your plugin without any further issue.
This applies to all versions I have tried 5.1.2, 5.2.0, 5.3.2, 5.4.0.

Any clue?

bluedots

col[4] is always equal to 2.718

If there are at least five columns, then col[4] (corresponding to the 5th column) is always equal to 2.718.

For example, see this screen shot for a trivial example in which the first column is a simple count metric, and each of the next four calculated columns has a formula that points to the immediately preceding column.

screen shot 2017-06-08 at 11 49 06

I've reproduced this result both when the 5th column is populated by a metric in the Data tab and when it's populated by a computed column in the Options tab.

My temporary workaround is to treat the 5th column as a dummy column and add it to the hidden columns list.

installation issue

I am trying to install the plugin manually, and I get this message :

ERROR in ../plugins/computed-columns-master/public/computed-columns-vis.j

Module not found: Error: Cannot resolve module 'expr-eval' in C:\HOMEWARE
kibana\plugins\computed-columns-master\public
@ ../plugins/computed-columns-master/public/computed-columns-vis.js 25:1

Do you know what is it due to?

Incompatibility with Kibana 5.5.0

Hi,

  • I download : computed-columns-0.6.0-5.3.3.zip
  • I modify package.json to set kibana version to 5.5.0
  • I install the updated zip in Kibana 5.5.0 => it works fine : "Plugin installation complete"
  • Then, I start Kibana => no error
  • But when I access Kibana in my browser, I get the following fatal error :
 Fatal Error
TypeError: _modules2.default is undefined (http://localhost:5601/bundles/kibana.bundle.js?v=15382:279)

Version: 5.5.0
Build: 15382

Error: TypeError: _modules2.default is undefined (http://localhost:5601/bundles/kibana.bundle.js?v=15382:279)
[308]/window.onerror@http://localhost:5601/bundles/commons.bundle.js?v=15382:76:8876

0.70 for Kibana 5.4.3

Is it possible to provide a zip of 0.70 for installation into Kibana 5.4.3?

Thanks!

Support for 5.6.2

Hi,
I was wondering whether the last release 5.5.0 would work for 5.6.2 ?

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.