如何在kibana中安装newrelic

How to install newrelic in kibana

我正在尝试为我的 kibana 实例安装 newrelic。我在 newrelic 中获取数据但收到以下警告:

Some modules were uninstrumented during the current time window: bluebird, hapi. Make sure require('newrelic'); is the first line of the application's main module.

我以为 this 是 "application's main module",但显然不是。我应该将 require('newrelic'); 放在 kibana 代码的什么位置才能使其正常工作?

放置require('newrelic');的正确位置是kibana 运行脚本调用的cli/index.js文件。警告消息在 newrelic UI.

中消失需要一些时间