Added a default_route settings and updated to kibana's config.js
This commit is contained in:
parent
b00566113d
commit
78bc1fcaee
|
@ -13,6 +13,10 @@ module.exports = function (grunt) {
|
||||||
dev: '"'+ (grunt.option('es_port') || 9200) +'"',
|
dev: '"'+ (grunt.option('es_port') || 9200) +'"',
|
||||||
dist: "(window.location.port !== '' ? ':'+window.location.port : '')"
|
dist: "(window.location.port !== '' ? ':'+window.location.port : '')"
|
||||||
},
|
},
|
||||||
|
defaultRoute: {
|
||||||
|
dev: '/dashboard/file/marvel.overview.json',
|
||||||
|
dist: '/dashboard/elasticsearch/Marvel%20-%20Overview'
|
||||||
|
},
|
||||||
kibanaPort: grunt.option('port') || 5601,
|
kibanaPort: grunt.option('port') || 5601,
|
||||||
kibanaHost: 'localhost'
|
kibanaHost: 'localhost'
|
||||||
|
|
||||||
|
|
111
config.js
111
config.js
|
@ -1,56 +1,69 @@
|
||||||
/**
|
/** @scratch /configuration/config.js/1
|
||||||
* These is the app's configuration, If you need to configure
|
* == Configuration
|
||||||
* the default dashboard, please see dashboards/default
|
* config.js is where you will find the core Kibana configuration. This file contains parameter that
|
||||||
|
* must be set before kibana is run for the first time.
|
||||||
*/
|
*/
|
||||||
define(['settings'],
|
define(['settings'],
|
||||||
function (Settings) {
|
function (Settings) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
/** @scratch /configuration/config.js/2
|
||||||
return new Settings({
|
* === Parameters
|
||||||
|
|
||||||
/**
|
|
||||||
* URL to your elasticsearch server. You almost certainly don't
|
|
||||||
* want 'http://localhost:9200' here. Even if Kibana and ES are on
|
|
||||||
* the same host
|
|
||||||
*
|
|
||||||
* By default this will attempt to reach ES at the same host you have
|
|
||||||
* elasticsearch installed on. You probably want to set it to the FQDN of your
|
|
||||||
* elasticsearch host
|
|
||||||
* @type {String}
|
|
||||||
*/
|
*/
|
||||||
elasticsearch: "http://"+window.location.hostname+":"+@@port,
|
return new Settings({
|
||||||
|
|
||||||
/**
|
/** @scratch /configuration/config.js/5
|
||||||
* The default ES index to use for storing Kibana specific object
|
* ==== elasticsearch
|
||||||
* such as stored dashboards
|
*
|
||||||
* @type {String}
|
* The URL to your elasticsearch server. You almost certainly don't
|
||||||
*/
|
* want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
|
||||||
kibana_index: ".marvel-kibana",
|
* the same host. By default this will attempt to reach ES at the same host you have
|
||||||
|
* kibana installed on. You probably want to set it to the FQDN of your
|
||||||
|
* elasticsearch host
|
||||||
|
*/
|
||||||
|
elasticsearch: "http://"+window.location.hostname+":"+@@port,
|
||||||
|
|
||||||
/**
|
/** @scratch /configuration/config.js/5
|
||||||
* Panel modules available. Panels will only be loaded when they are defined in the
|
* ==== default_route
|
||||||
* dashboard, but this list is used in the "add panel" interface.
|
*
|
||||||
* @type {Array}
|
* This is the default landing page when you don't specify a dashboard to load. You can specify
|
||||||
*/
|
* files, scripts or saved dashboards here. For example, if you had saved a dashboard called
|
||||||
panel_names: [
|
* `WebLogs' to elasticsearch you might use:
|
||||||
'histogram',
|
*
|
||||||
'map',
|
* +default_route: '/dashboard/elasticsearch/WebLogs',+
|
||||||
'pie',
|
*/
|
||||||
'table',
|
default_route : '@@default_route',
|
||||||
'filtering',
|
|
||||||
'timepicker',
|
/** @scratch /configuration/config.js/5
|
||||||
'text',
|
* ==== kibana-int
|
||||||
'fields',
|
*
|
||||||
'hits',
|
* The default ES index to use for storing Kibana specific object
|
||||||
'dashcontrol',
|
* such as stored dashboards
|
||||||
'column',
|
*/
|
||||||
'derivequeries',
|
kibana_index: ".marvel-kibana",
|
||||||
'trends',
|
|
||||||
'bettermap',
|
/** @scratch /configuration/config.js/5
|
||||||
'query',
|
* ==== panel_name
|
||||||
'terms',
|
*
|
||||||
'sparklines',
|
* An array of panel modules available. Panels will only be loaded when they are defined in the
|
||||||
'marvel.stats_table'
|
* dashboard, but this list is used in the "add panel" interface.
|
||||||
]
|
*/
|
||||||
|
panel_names: [
|
||||||
|
'histogram',
|
||||||
|
'map',
|
||||||
|
'pie',
|
||||||
|
'table',
|
||||||
|
'filtering',
|
||||||
|
'timepicker',
|
||||||
|
'text',
|
||||||
|
'hits',
|
||||||
|
'column',
|
||||||
|
'trends',
|
||||||
|
'bettermap',
|
||||||
|
'query',
|
||||||
|
'terms',
|
||||||
|
'sparklines',
|
||||||
|
'marvel.stats_table'
|
||||||
|
]
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
|
@ -7,6 +7,10 @@ module.exports = function (config) {
|
||||||
{
|
{
|
||||||
match: 'port',
|
match: 'port',
|
||||||
replacement: '<%= esPort.dev %>',
|
replacement: '<%= esPort.dev %>',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: 'default_route',
|
||||||
|
replacement: '<%= defaultRoute.dev %>',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -20,6 +24,10 @@ module.exports = function (config) {
|
||||||
{
|
{
|
||||||
match: 'port',
|
match: 'port',
|
||||||
replacement: '<%= esPort.dist %>',
|
replacement: '<%= esPort.dist %>',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: 'default_route',
|
||||||
|
replacement: '<%= defaultRoute.dist %>',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue