config.js 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. /** @scratch /configuration/config.js/1
  2. * == Configuration
  3. * config.js is where you will find the core Grafana 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. return new Settings({
  10. elasticsearch: "http://"+window.location.hostname+":9200",
  11. /**
  12. * For Basic authentication use: http://username:password@domain.com
  13. * Basic authentication requires special nginx or apache2 headers for cross origin comain to work
  14. * Check install documentation on github
  15. */
  16. graphiteUrl: "http://"+window.location.hostname+":8080",
  17. default_route: '/dashboard/file/default.json',
  18. /**
  19. * If your graphite server has another timezone than you & users browsers specify the offset here
  20. * Example: "-0500" (for UTC - 5 hours)
  21. */
  22. timezoneOffset: null,
  23. grafana_index: "grafana-dash",
  24. panel_names: [
  25. 'text',
  26. 'graphite'
  27. ]
  28. });
  29. });