Kibana-API is an extension to Kibana that lets you tap in to the dashboard management board from your app and change the visualizations dynamically.
The plugin uses Window.postMessage() method (https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage), to connect between the applicaion and the kibana iframe
var iframe = document.getElementById('Iframe');
in javascript use:
var iWindow=iframe.contentWindow
in typescript use:
var iWindow = (<HTMLIFrameElement>iframe).contentWindow;
iWindow.postMessage({}, '*');
(https://github.com/Webiks/kibana-API/wiki)
In order to create a visualization you need to call the plugin with the visualization state.
Kibana-API is able to recieve all the visualization's properties (isFullState = true
) - fullState.
In case you do not wish to define all the visualization's properties (isFullState = false
), you can pass some and Kibana-API will automatically fill-in the rest. partial visState
./bin/kibana-plugin install https://github.com/Webiks/kibana-API/releases/download/5.4/kibana_api_5.4.zip
- clone git repo in
kibana_home/plugins
cd kibana_home/plugins/kibana-API
npm install
npm test