config.sample.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 Grafana is run for the first time.
  5. */
  6. define(['settings'],
  7. function (Settings) {
  8. "use strict";
  9. return new Settings({
  10. /**
  11. * elasticsearch url:
  12. * For Basic authentication use: http://username:password@domain.com:9200
  13. */
  14. elasticsearch: "http://"+window.location.hostname+":9200",
  15. /**
  16. * graphite-web url:
  17. * For Basic authentication use: http://username:password@domain.com
  18. * Basic authentication requires special HTTP headers to be configured
  19. * in nginx or apache for cross origin domain sharing to work (CORS).
  20. * Check install documentation on github
  21. */
  22. graphiteUrl: "http://"+window.location.hostname+":8080",
  23. /**
  24. * Multiple graphite servers? Comment out graphiteUrl and replace with
  25. *
  26. * datasources: {
  27. * data_center_us: { type: 'graphite', url: 'http://<graphite_url>', default: true },
  28. * data_center_eu: { type: 'graphite', url: 'http://<graphite_url>' }
  29. * }
  30. */
  31. default_route: '/dashboard/file/default.json',
  32. /**
  33. * If your graphite server has another timezone than you & users browsers specify the offset here
  34. * Example: "-0500" (for UTC - 5 hours)
  35. */
  36. timezoneOffset: null,
  37. grafana_index: "grafana-dash",
  38. panel_names: [
  39. 'text',
  40. 'graphite'
  41. ]
  42. });
  43. });