Hi,
I want to create reports of my Kibana dashboards. I know that this is not yet possible with Kibana. So I'm trying my luck with phantomjs. Unfortunately you can't see the values of each bar or pie charts. They are only visible in the tooltip. Is it possible to save these tooltips with phantomjs?
here is what I have so far:
var url = 'http://user:password@kibana/#/dashboard/mydashboard?embed&_g=(refreshInterval:(display:Off,section:0,value:0),time:(from:now-30d,mode:quick,to:now))';
var page = require('webpage').create();
//wait to load kibana in ms
var waitTime = 10 * 1000;
//width of rendered page in pixels
page.viewportSize = { width: 1800, height: 2000 };
page.open(url, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function () {
page.render('kibana.jpg')
//html output to console
console.log(page.content);
phantom.exit();
}, waitTime);
}
});