config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /** @scratch /configuration/config.js/1
  2. * == Configuration
  3. * config.js is where you will find the core Kibana configuration. This file contains parameter that
  4. * must be set before kibana is run for the first time.
  5. */
  6. define(['settings'],
  7. function (Settings) {
  8. "use strict";
  9. /** @scratch /configuration/config.js/2
  10. * === Parameters
  11. */
  12. return new Settings({
  13. /** @scratch /configuration/config.js/5
  14. * ==== elasticsearch
  15. *
  16. * The URL to your elasticsearch server. You almost certainly don't
  17. * want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
  18. * the same host. By default this will attempt to reach ES at the same host you have
  19. * kibana installed on. You probably want to set it to the FQDN of your
  20. * elasticsearch host
  21. */
  22. elasticsearch: "http://"+window.location.hostname+":9200",
  23. /** @scratch /configuration/config.js/5
  24. * ==== default_route
  25. *
  26. * This is the default landing page when you don't specify a dashboard to load. You can specify
  27. * files, scripts or saved dashboards here. For example, if you had saved a dashboard called
  28. * `WebLogs' to elasticsearch you might use:
  29. *
  30. * +default_route: '/dashboard/elasticsearch/WebLogs',+
  31. */
  32. default_route : '/dashboard/file/default.json',
  33. /** @scratch /configuration/config.js/5
  34. * ==== kibana-int
  35. *
  36. * The default ES index to use for storing Kibana specific object
  37. * such as stored dashboards
  38. */
  39. kibana_index: "kibana-int",
  40. /** @scratch /configuration/config.js/5
  41. * ==== panel_name
  42. *
  43. * An array of panel modules available. Panels will only be loaded when they are defined in the
  44. * dashboard, but this list is used in the "add panel" interface.
  45. */
  46. panel_names: [
  47. 'histogram',
  48. 'map',
  49. 'pie',
  50. 'table',
  51. 'filtering',
  52. 'timepicker',
  53. 'text',
  54. 'hits',
  55. 'column',
  56. 'trends',
  57. 'bettermap',
  58. 'query',
  59. 'terms',
  60. 'sparklines'
  61. ]
  62. });
  63. });