amannocci / kibana-plugin-metric-percent Goto Github PK
View Code? Open in Web Editor NEWPlugin for Kibana Version 4.6 or 5.x.x or 6.x.x
Plugin for Kibana Version 4.6 or 5.x.x or 6.x.x
I've successfully installed your plugin after following the instructions issue #2, but now I'm getting an error when I start kibana and I don't know where to start. When I remove your plugin in the issue goes away. I was hoping you could provide some insight.
I'm using Kibana 5.2.2.
Here's a screenshot of my issue.
Hi!
I'm afraid I don't understand the included installation instructions. Can you please clearify?
Clicking on percentage value causing kibana fatal error:
Version: 6.3.0
Build: 17230
Error: Uncaught TypeError: _this.props.vis.API.events.addFilter is not a function (http://localhost:5601/bundles/vendors.bundle.js:141) at window.onerror (http://localhost:5601/bundles/commons.bundle.js:3:779751)
Console:
Error: Uncaught TypeError: _this.props.vis.API.events.addFilter is not a function (http://localhost:5601/bundles/vendors.bundle.js:141) at window.onerror (commons.bundle.js:3) fatalError @ commons.bundle.js:3 window.onerror @ commons.bundle.js:3 vendors.bundle.js:141 Uncaught TypeError: _this.props.vis.API.events.addFilter is not a function at Object.MetricPercentVisComponent._this._filterBucket [as onFilter] (commons.bundle.js:3) at MetricPercentVisValue._this.onClick (commons.bundle.js:3) at Object.Ja (vendors.bundle.js:141) at Object.invokeGuardedCallback (vendors.bundle.js:149) at Object.invokeGuardedCallbackAndCatchFirstError (vendors.bundle.js:149) at Za (vendors.bundle.js:141) at cb (vendors.bundle.js:141) at gb (vendors.bundle.js:141) at Array.forEach (<anonymous>) at ab (vendors.bundle.js:141) at lb (vendors.bundle.js:141) at sd (vendors.bundle.js:149) at rd (vendors.bundle.js:141) at batchedUpdates (vendors.bundle.js:141) at tc (vendors.bundle.js:141) at vd (vendors.bundle.js:141) MetricPercentVisComponent._this._filterBucket @ commons.bundle.js:3 MetricPercentVisValue._this.onClick @ commons.bundle.js:3 Ja @ vendors.bundle.js:141 invokeGuardedCallback @ vendors.bundle.js:149 invokeGuardedCallbackAndCatchFirstError @ vendors.bundle.js:149 Za @ vendors.bundle.js:141 cb @ vendors.bundle.js:141 gb @ vendors.bundle.js:141 ab @ vendors.bundle.js:141 lb @ vendors.bundle.js:141 sd @ vendors.bundle.js:149 rd @ vendors.bundle.js:141 batchedUpdates @ vendors.bundle.js:141 tc @ vendors.bundle.js:141 vd @ vendors.bundle.js:141 commons.bundle.js:3 Uncaught Error: Uncaught TypeError: _this.props.vis.API.events.addFilter is not a function (http://localhost:5601/bundles/vendors.bundle.js:141) at window.onerror (commons.bundle.js:3)
disabling click action should resolve that problem
Thanks for a great plugin!
I want try install this plug in windows and i get an error "Plugin installation was unsuccessful due to error "No kibana plugins found in archive""
How to define different the base number in the same Visualize?
Such as filter Rule 1 and filter Rule 2 are effective at the same time in the Filter function.
I tried uses ‘and’ and ‘or’ in Filter query but did not work.
Thank you.
I am running kibana 5.5 and got this error when installing this plugin
./kibana-plugin install file:///usr/share/kibana/metric_percent_vis.zip
Attempting to transfer from file:///usr/share/kibana/metric_percent_vis.zip
Transferring 91351 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Plugin installation was unsuccessful due to error "No kibana plugins found in archive"
I'm trying to get this to work on the OpenDistro version of Kibana 6.5.4.
Apparently the import worked, but when I try to use this visualization I see the following error on the console:
TypeError: Cannot read property 'forEach' of undefined
at MetricPercentVisComponent._processTableGroups (kibana.bundle.js:82)
at MetricPercentVisComponent.render (kibana.bundle.js:82)
at l (vendors.bundle.js:108)
at beginWork (vendors.bundle.js:108)
at e (vendors.bundle.js:108)
at f (vendors.bundle.js:108)
at G (vendors.bundle.js:108)
at x (vendors.bundle.js:108)
at n (vendors.bundle.js:108)
at B (vendors.bundle.js:108)
bf @ vendors.bundle.js:108
commitErrorLogging @ vendors.bundle.js:108
R @ vendors.bundle.js:108
G @ vendors.bundle.js:108
x @ vendors.bundle.js:108
n @ vendors.bundle.js:108
B @ vendors.bundle.js:108
v @ vendors.bundle.js:108
b @ vendors.bundle.js:108
updateContainer @ vendors.bundle.js:108
sg.render @ vendors.bundle.js:108
(anonymous) @ vendors.bundle.js:108
unbatchedUpdates @ vendors.bundle.js:108
Eg @ vendors.bundle.js:108
render @ vendors.bundle.js:108
(anonymous) @ commons.bundle.js:1
render @ commons.bundle.js:1
(anonymous) @ kibana.bundle.js:82
step @ vendors.bundle.js:35
(anonymous) @ vendors.bundle.js:35
(anonymous) @ vendors.bundle.js:35
__awaiter @ vendors.bundle.js:35
(anonymous) @ kibana.bundle.js:82
SwitchMapSubscriber._next @ vendors.bundle.js:42
Subscriber.next @ vendors.bundle.js:35
DebounceTimeSubscriber.debouncedNext @ vendors.bundle.js:92
dispatchNext @ vendors.bundle.js:92
AsyncAction._execute @ vendors.bundle.js:42
AsyncAction.execute @ vendors.bundle.js:42
AsyncScheduler.flush @ vendors.bundle.js:42
setInterval (async)
AsyncAction.requestAsyncId @ vendors.bundle.js:42
AsyncAction.schedule @ vendors.bundle.js:42
Scheduler.schedule @ vendors.bundle.js:62
AsyncScheduler.schedule @ vendors.bundle.js:42
DebounceTimeSubscriber._next @ vendors.bundle.js:92
Subscriber.next @ vendors.bundle.js:35
FilterSubscriber._next @ vendors.bundle.js:42
Subscriber.next @ vendors.bundle.js:35
TapSubscriber._next @ vendors.bundle.js:62
Subscriber.next @ vendors.bundle.js:35
Subscriber._next @ vendors.bundle.js:35
Subscriber.next @ vendors.bundle.js:35
Subject.next @ vendors.bundle.js:35
Subscriber._next @ vendors.bundle.js:35
Subscriber.next @ vendors.bundle.js:35
Subject.next @ vendors.bundle.js:35
VisualizationChart.startRenderVisualization @ kibana.bundle.js:82
VisualizationChart.componentDidUpdate @ kibana.bundle.js:82
commitLifeCycles @ vendors.bundle.js:108
R @ vendors.bundle.js:108
G @ vendors.bundle.js:108
x @ vendors.bundle.js:108
n @ vendors.bundle.js:108
B @ vendors.bundle.js:108
v @ vendors.bundle.js:108
b @ vendors.bundle.js:108
updateContainer @ vendors.bundle.js:108
sg.render @ vendors.bundle.js:108
Eg @ vendors.bundle.js:108
render @ vendors.bundle.js:108
(anonymous) @ kibana.bundle.js:82
renderVisualization @ kibana.bundle.js:82
EmbeddedVisualizeHandler.render @ kibana.bundle.js:82
Promise.then (async)
(anonymous) @ kibana.bundle.js:82
complete @ vendors.bundle.js:10
delayed @ vendors.bundle.js:10
setTimeout (async)
debounced @ vendors.bundle.js:10
EmbeddedVisualizeHandler.fetchAndRender @ kibana.bundle.js:82
(anonymous) @ kibana.bundle.js:82
Promise.then (async)
EmbeddedVisualizeHandler.render @ kibana.bundle.js:82
EmbeddedVisualizeHandler @ kibana.bundle.js:82
VisualizeLoader.renderVis @ kibana.bundle.js:7
VisualizeLoader.embedVisualizationWithSavedObject @ kibana.bundle.js:7
(anonymous) @ kibana.bundle.js:97
Promise.then (async)
(anonymous) @ kibana.bundle.js:97
render @ kibana.bundle.js:97
$scope.renderFunction @ kibana.bundle.js:97
$digest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
completeOutstandingRequest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
setTimeout (async)
Browser.self.defer @ vendors.bundle.js:177
$evalAsync @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
scheduleProcessQueue @ vendors.bundle.js:177
$$resolve @ vendors.bundle.js:177
doResolve @ vendors.bundle.js:177
Promise.then (async)
$$resolve @ vendors.bundle.js:177
resolvePromise @ vendors.bundle.js:177
Deferred.resolve @ vendors.bundle.js:177
Promise.resolve @ commons.bundle.js:1
get @ commons.bundle.js:1
init @ commons.bundle.js:1
IndexPatternsProvider.self.make @ commons.bundle.js:1
IndexPatternsProvider.self.get @ commons.bundle.js:1
SavedObject.hydrateIndexPattern @ commons.bundle.js:1
(anonymous) @ commons.bundle.js:1
processQueue @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
$digest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
forEach @ vendors.bundle.js:177
fireStateOrUrlChange @ vendors.bundle.js:177
cacheStateAndFireUrlChange @ vendors.bundle.js:177
dispatch @ vendors.bundle.js:171
elemData.handle @ vendors.bundle.js:171
Show 33 more frames
commons.bundle.js:1 Error: Uncaught TypeError: Cannot read property 'forEach' of undefined (https://192.168.99.100/reports/bundles/vendors.bundle.js:42)
at window.onerror (commons.bundle.js:1)
FatalErrorsService.add @ commons.bundle.js:1
fatalError @ commons.bundle.js:1
window.onerror @ commons.bundle.js:1
error (async)
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
(anonymous) @ commons.bundle.js:1
webpack_require @ vendors.bundle.js:1
LegacyPlatformService.loadBootstrapModule @ commons.bundle.js:1
LegacyPlatformService.start @ commons.bundle.js:1
CoreSystem.start @ commons.bundle.js:1
(anonymous) @ kibana.bundle.js:82
webpack_require @ vendors.bundle.js:1
webpackJsonpCallback @ vendors.bundle.js:1
(anonymous) @ kibana.bundle.js:1
vendors.bundle.js:42 Uncaught TypeError: Cannot read property 'forEach' of undefined
at MetricPercentVisComponent._processTableGroups (kibana.bundle.js:82)
at MetricPercentVisComponent.render (kibana.bundle.js:82)
at l (vendors.bundle.js:108)
at beginWork (vendors.bundle.js:108)
at e (vendors.bundle.js:108)
at f (vendors.bundle.js:108)
at G (vendors.bundle.js:108)
at x (vendors.bundle.js:108)
at n (vendors.bundle.js:108)
at B (vendors.bundle.js:108)
_processTableGroups @ kibana.bundle.js:82
render @ kibana.bundle.js:82
l @ vendors.bundle.js:108
beginWork @ vendors.bundle.js:108
e @ vendors.bundle.js:108
f @ vendors.bundle.js:108
G @ vendors.bundle.js:108
x @ vendors.bundle.js:108
n @ vendors.bundle.js:108
B @ vendors.bundle.js:108
v @ vendors.bundle.js:108
b @ vendors.bundle.js:108
updateContainer @ vendors.bundle.js:108
sg.render @ vendors.bundle.js:108
(anonymous) @ vendors.bundle.js:108
unbatchedUpdates @ vendors.bundle.js:108
Eg @ vendors.bundle.js:108
render @ vendors.bundle.js:108
(anonymous) @ commons.bundle.js:1
render @ commons.bundle.js:1
(anonymous) @ kibana.bundle.js:82
step @ vendors.bundle.js:35
(anonymous) @ vendors.bundle.js:35
(anonymous) @ vendors.bundle.js:35
__awaiter @ vendors.bundle.js:35
(anonymous) @ kibana.bundle.js:82
SwitchMapSubscriber._next @ vendors.bundle.js:42
Subscriber.next @ vendors.bundle.js:35
DebounceTimeSubscriber.debouncedNext @ vendors.bundle.js:92
dispatchNext @ vendors.bundle.js:92
AsyncAction._execute @ vendors.bundle.js:42
AsyncAction.execute @ vendors.bundle.js:42
AsyncScheduler.flush @ vendors.bundle.js:42
setTimeout (async)
hostReportError @ vendors.bundle.js:42
SafeSubscriber.error @ vendors.bundle.js:35
Subscriber._error @ vendors.bundle.js:35
Subscriber.error @ vendors.bundle.js:35
OuterSubscriber.notifyError @ vendors.bundle.js:35
InnerSubscriber._error @ vendors.bundle.js:92
Subscriber.error @ vendors.bundle.js:35
OuterSubscriber.notifyError @ vendors.bundle.js:35
InnerSubscriber._error @ vendors.bundle.js:92
Subscriber.error @ vendors.bundle.js:35
(anonymous) @ vendors.bundle.js:62
Promise.then (async)
(anonymous) @ vendors.bundle.js:62
subscribeToResult @ vendors.bundle.js:35
SwitchMapSubscriber._innerSub @ vendors.bundle.js:42
SwitchMapSubscriber._next @ vendors.bundle.js:42
Subscriber.next @ vendors.bundle.js:35
DebounceTimeSubscriber.debouncedNext @ vendors.bundle.js:92
dispatchNext @ vendors.bundle.js:92
AsyncAction._execute @ vendors.bundle.js:42
AsyncAction.execute @ vendors.bundle.js:42
AsyncScheduler.flush @ vendors.bundle.js:42
setInterval (async)
AsyncAction.requestAsyncId @ vendors.bundle.js:42
AsyncAction.schedule @ vendors.bundle.js:42
Scheduler.schedule @ vendors.bundle.js:62
AsyncScheduler.schedule @ vendors.bundle.js:42
DebounceTimeSubscriber._next @ vendors.bundle.js:92
Subscriber.next @ vendors.bundle.js:35
FilterSubscriber._next @ vendors.bundle.js:42
Subscriber.next @ vendors.bundle.js:35
TapSubscriber._next @ vendors.bundle.js:62
Subscriber.next @ vendors.bundle.js:35
Subscriber._next @ vendors.bundle.js:35
Subscriber.next @ vendors.bundle.js:35
Subject.next @ vendors.bundle.js:35
Subscriber._next @ vendors.bundle.js:35
Subscriber.next @ vendors.bundle.js:35
Subject.next @ vendors.bundle.js:35
VisualizationChart.startRenderVisualization @ kibana.bundle.js:82
VisualizationChart.componentDidUpdate @ kibana.bundle.js:82
commitLifeCycles @ vendors.bundle.js:108
R @ vendors.bundle.js:108
G @ vendors.bundle.js:108
x @ vendors.bundle.js:108
n @ vendors.bundle.js:108
B @ vendors.bundle.js:108
v @ vendors.bundle.js:108
b @ vendors.bundle.js:108
updateContainer @ vendors.bundle.js:108
sg.render @ vendors.bundle.js:108
Eg @ vendors.bundle.js:108
render @ vendors.bundle.js:108
(anonymous) @ kibana.bundle.js:82
renderVisualization @ kibana.bundle.js:82
EmbeddedVisualizeHandler.render @ kibana.bundle.js:82
Promise.then (async)
(anonymous) @ kibana.bundle.js:82
complete @ vendors.bundle.js:10
delayed @ vendors.bundle.js:10
setTimeout (async)
debounced @ vendors.bundle.js:10
EmbeddedVisualizeHandler.fetchAndRender @ kibana.bundle.js:82
(anonymous) @ kibana.bundle.js:82
Promise.then (async)
EmbeddedVisualizeHandler.render @ kibana.bundle.js:82
EmbeddedVisualizeHandler @ kibana.bundle.js:82
VisualizeLoader.renderVis @ kibana.bundle.js:7
VisualizeLoader.embedVisualizationWithSavedObject @ kibana.bundle.js:7
(anonymous) @ kibana.bundle.js:97
Promise.then (async)
(anonymous) @ kibana.bundle.js:97
render @ kibana.bundle.js:97
$scope.renderFunction @ kibana.bundle.js:97
$digest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
completeOutstandingRequest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
setTimeout (async)
Browser.self.defer @ vendors.bundle.js:177
$evalAsync @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
scheduleProcessQueue @ vendors.bundle.js:177
$$resolve @ vendors.bundle.js:177
doResolve @ vendors.bundle.js:177
Promise.then (async)
$$resolve @ vendors.bundle.js:177
resolvePromise @ vendors.bundle.js:177
Deferred.resolve @ vendors.bundle.js:177
Promise.resolve @ commons.bundle.js:1
get @ commons.bundle.js:1
init @ commons.bundle.js:1
IndexPatternsProvider.self.make @ commons.bundle.js:1
IndexPatternsProvider.self.get @ commons.bundle.js:1
SavedObject.hydrateIndexPattern @ commons.bundle.js:1
(anonymous) @ commons.bundle.js:1
processQueue @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
$digest @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
(anonymous) @ vendors.bundle.js:177
forEach @ vendors.bundle.js:177
fireStateOrUrlChange @ vendors.bundle.js:177
cacheStateAndFireUrlChange @ vendors.bundle.js:177
dispatch @ vendors.bundle.js:171
elemData.handle @ vendors.bundle.js:171
Show 36 more frames
commons.bundle.js:1 Uncaught Error: Uncaught TypeError: Cannot read property 'forEach' of undefined (https://192.168.99.100/reports/bundles/vendors.bundle.js:42)
at window.onerror (commons.bundle.js:1)
would you have any suggestion on how to troubleshoot this further?
i m using Kibana 5.4.0 on Windows 7.
please help me, how to install this plugin?
Hi
I am using this script to install the plugin on my kibana.
bash <(curl -Ss https://raw.githubusercontent.com/amannocci/kibana-plugin-metric-percent/master/scripts/setup-plugin.sh)
But it fails and here is the complete log:
bash-4.4# bash <(curl -Ss https://raw.githubusercontent.com/amannocci/kibana-plugin-metric-percent/master/scripts/setup-plugin.sh)
o Repository: (default: https://github.com/amannocci/kibana-plugin-metric-percent)
>
o Repository setup to: https://github.com/amannocci/kibana-plugin-metric-percent
o Kibana version: (default: master)
>
o Kibana version setup to: master
o Cloning plugin in tmp
Cloning into '/tmp/kibana-plugin-metric-percent'...
remote: Enumerating objects: 178, done.
remote: Total 178 (delta 0), reused 0 (delta 0), pack-reused 178
Receiving objects: 100% (178/178), 271.78 KiB | 3.48 MiB/s, done.
Resolving deltas: 100% (82/82), done.
o Repacking plugin...
updating: kibana/ (stored 0%)
updating: kibana/metric_percent_vis/ (stored 0%)
updating: kibana/metric_percent_vis/resources/ (stored 0%)
updating: kibana/metric_percent_vis/resources/overview.png (deflated 10%)
updating: kibana/metric_percent_vis/resources/usage-02.png (deflated 5%)
updating: kibana/metric_percent_vis/resources/usage-01.png (deflated 5%)
updating: kibana/metric_percent_vis/resources/options.png (deflated 5%)
updating: kibana/metric_percent_vis/public/ (stored 0%)
updating: kibana/metric_percent_vis/public/metric_percent_vis_params.html (deflated 81%)
updating: kibana/metric_percent_vis/public/metric_percent_vis_params.js (deflated 70%)
updating: kibana/metric_percent_vis/public/components/ (stored 0%)
updating: kibana/metric_percent_vis/public/components/metric_percent_vis_value.js (deflated 60%)
updating: kibana/metric_percent_vis/public/metric_percent_vis.js (deflated 64%)
updating: kibana/metric_percent_vis/public/metric_percent_vis.less (deflated 47%)
updating: kibana/metric_percent_vis/public/metric_percent_vis_controller.js (deflated 69%)
updating: kibana/metric_percent_vis/package.json (deflated 64%)
updating: kibana/metric_percent_vis/yarn.lock (deflated 72%)
updating: kibana/metric_percent_vis/README.md (deflated 54%)
updating: kibana/metric_percent_vis/index.js (deflated 26%)
updating: kibana/metric_percent_vis/scripts/ (stored 0%)
updating: kibana/metric_percent_vis/scripts/setup-plugin.sh (deflated 60%)
o Cleanup...
o Kibana plugin manager detected
o Do you want to install plugin ? [y/n] (default: n)
> y
DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Attempting to transfer from file:///tmp/metric_percent_vis.zip
Transferring 163535 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation was unsuccessful due to error "Incorrect Kibana version in plugin [metric_percent_vis]. Expected [6.2.3]; found [kibana]"
bash-4.4#
Can you advise on what should I do to fix this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.