config.sample.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 you experiance problems with zoom, it is probably caused by timezone diff between
  34. * your browser and the graphite-web application. timezoneOffset setting can be used to have Grafana
  35. * translate absolute time ranges to the graphite-web timezone.
  36. * Example:
  37. * If TIME_ZONE in graphite-web config file local_settings.py is set to America/New_York, then set
  38. * timezoneOffset to "-0500" (for UTC - 5 hours)
  39. * Example:
  40. * If TIME_ZONE is set to UTC, set this to "0000"
  41. */
  42. timezoneOffset: null,
  43. grafana_index: "grafana-dash",
  44. panel_names: [
  45. 'text',
  46. 'graphite'
  47. ]
  48. });
  49. });