0

我想将默认路由更改为 Banana 默认仪表板。因为我不想每次启动 Banana 时都加载文件,如果我想使用另一台计算机,我将被拥有……</p>

我不知道在哪里可以找到这个变量,在哪个文件中。

我在 config.js 文件上看到了这个,但我不太明白:

The default Solr index to use for storing objects internal to Banana, such as 
stored dashboards. If you have been using a collection named kibana-int 
to save your dashboards (the default provided in Banana 1.2 and earlier), then you
simply need to replace the string "banana-int" with "kibana-int" and your old 
dashboards will be accessible. 
This banana-int (or equivalent) collection must be created and available in the 
default solr server specified above, which serves as the persistence store for data 
internal to banana.

有人有想法吗?

4

1 回答 1

2

我找到了解决方案:)。

它位于 src/app/services 目录中的 dashboards.js 中。我必须通过从我的 Banana 导出的文件更改标记为 default.json 的行,并将其放在 src/app/dasboards 目录中。

可在此地址获取信息:http: //blog.trifork.com/2014/05/20/advanced-kibana-dashboard/(它是 Kibana,但 Banana 是 Kibana 的一个分支)。

于 2015-08-21T15:46:44.543 回答