кто-нибудь написал плагины кибаны для упругого поиска?Я застрял на получении данных через клиента nodejs изasticsearch.Моя задача - создать новую визуализацию в кибане.
const adminCluster = server.plugins.elasticsearch.getCluster('admin');
const dataCluster = server.plugins.elasticsearch.getCluster('data');
//ping as the configured elasticsearch.user in kibana.yml
adminCluster.callWithInternalUser('ping');
//ping as the user specified in the current requests header
adminCluster.callWithRequest(req, 'ping');
//browser client AngularJS
uiModules.get('kibana')
.run(function (es) {
es.ping()
.catch(err => {
console.log('error pinging servers');
});
});