config.sample.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. // datasources, you can add multiple
  11. datasources: {
  12. graphite: {
  13. type: 'graphite',
  14. url: "http://my.graphite.server.com:8080",
  15. default: true
  16. },
  17. influxdb: {
  18. type: 'influxdb',
  19. url: "http://my_influxdb_server:8080/db/database_name",
  20. user: 'admin',
  21. password: 'admin'
  22. },
  23. },
  24. // elasticsearch url
  25. // used for storing and loading dashboards, optional
  26. // For Basic authentication use: http://username:password@domain.com:9200
  27. elasticsearch: "http://"+window.location.hostname+":9200",
  28. // default start dashboard
  29. default_route: '/dashboard/file/default.json',
  30. // timezoneOFfset:
  31. // If you experiance problems with zoom, it is probably caused by timezone diff between
  32. // your browser and the graphite-web application. timezoneOffset setting can be used to have Grafana
  33. // translate absolute time ranges to the graphite-web timezone.
  34. // Example:
  35. // If TIME_ZONE in graphite-web config file local_settings.py is set to America/New_York, then set
  36. // timezoneOffset to "-0500" (for UTC - 5 hours)
  37. // Example:
  38. // If TIME_ZONE is set to UTC, set this to "0000"
  39. //
  40. timezoneOffset: null,
  41. // Elasticsearch index for storing dashboards
  42. grafana_index: "grafana-dash",
  43. // set to false to disable unsaved changes warning
  44. unsaved_changes_warning: true,
  45. // set the default timespan for the playlist feature
  46. // Example: "1m", "1h"
  47. playlist_timespan: "1m",
  48. // Add your own custom pannels
  49. plugins: {
  50. panels: []
  51. }
  52. });
  53. });