All Downloads are FREE. Search and download functionalities are using the official Maven repository.

raf.decanter.org.apache.karaf.decanter.kibana-3.x.2.2.0.source-code.config.js Maven / Gradle / Ivy

The newest version!
/** @scratch /configuration/config.js/1
 *
 * == Configuration
 * 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'],
function (Settings) {
  "use strict";

  var es = "http://" + window.location.hostname + ":9200";
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i = 0; i < vars.length; i++) {
    var pair = vars[i].split("=");
    if (pair[0] == "elasticsearch") {
      es = pair[1];
    }
  }

  /** @scratch /configuration/config.js/2
   *
   * === Parameters
   */
  return new Settings({

    /** @scratch /configuration/config.js/5
     *
     * ==== elasticsearch
     *
     * The URL to your elasticsearch server. You almost certainly don't
     * want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
     * 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: es,
    
    /** @scratch /configuration/config.js/5
     *
     * ==== api_version
     *
     * The elasticsearch api version you want to use. This must match the version of your elasticsearch server.
     *
     * Valid version: 0.9, 1.0, 1.1, 1.2
     */
    api_version: "1.0",
    
    /** @scratch /configuration/config.js/5
     *
     * ==== sniff
     *
     * Whether to sniff elasticsearch nodes on kibana start. kibana would send queries to nodes by round-robin. You may want to set to false if you had a proxy before elasticsearch cluster.
     *
     * Valid value: true, false
     */
    sniff: true,

    /** @scratch /configuration/config.js/5
     *
     * ==== request_timeout
     *
     * The timeout in milliseconds for requests to Elasticsearch
     */
    request_timeout: 30000,

    /** @scratch /configuration/config.js/5
     *
     * ==== default_route
     *
     * 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
     * `WebLogs' to elasticsearch you might use:
     *
     * default_route: '/dashboard/elasticsearch/WebLogs',
     */
    default_route     : '/dashboard/file/default.json',

    /** @scratch /configuration/config.js/5
     *
     * ==== kibana-int
     *
     * The default ES index to use for storing Kibana specific object
     * such as stored dashboards
     */
    kibana_index: "kibana-int",

    /** @scratch /configuration/config.js/5
     *
     * ==== panel_name
     *
     * An array of panel modules available. Panels will only be loaded when they are defined in the
     * dashboard, but this list is used in the "add panel" interface.
     */
    panel_names: [
      'histogram',
      'map',
      'goal',
      'table',
      'filtering',
      'timepicker',
      'text',
      'hits',
      'column',
      'trends',
      'bettermap',
      'query',
      'terms',
      'stats',
      'sparklines',
      'percentiles',
      'ranges',
      'force',
      'statisticstrend',
      'multifieldhistogram',
      'valuehistogram'
    ]
  });
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy