sample.ini 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Sample grafana config for deb & rpm packages
  2. # You only need to specify overrides here
  3. # Defaults are in the /opt/grafana/current/conf/defaults.ini file
  4. # This file is never ovewritten when upgrading grafana via deb or rpm package
  5. app_mode = production
  6. ; data_path (used for sqlite3 db (if that is used), temp png images, and sessions (if file based sessions are used)
  7. ; this option is passed via command line args, override this option in /etc/default/grafana
  8. ; defaults to /opt/grafana/data
  9. data_path =
  10. [server]
  11. ; protocol (http or https)
  12. protocol = http
  13. ; the ip address to bind to, empty will bind to all interfaces
  14. http_addr =
  15. ; the http port to use
  16. http_port = 3000
  17. ; The public facing domain name used to access grafana from a browser
  18. domain = localhost
  19. ; the full public facing url
  20. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  21. router_logging = false
  22. ; the path relative to grafana process working directory
  23. static_root_path = public
  24. enable_gzip = false
  25. ; https certs & key file
  26. cert_file =
  27. cert_key =
  28. [analytics]
  29. # Server reporting, sends usage counters to stats.grafana.org (https).
  30. # No ip addresses are being tracked, only simple counters to track
  31. # running instances, dashboard and error counts. It is very helpful to us.
  32. # Change this option to false to disable reporting.
  33. reporting_enabled = true
  34. ; Google Analytics universal tracking code, only enabled if you specify an id here
  35. google_analytics_ua_id =
  36. [database]
  37. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  38. type = sqlite3
  39. host = 127.0.0.1:3306
  40. name = grafana
  41. user = root
  42. password =
  43. ; For "postgres" only, either "disable", "require" or "verify-full"
  44. ssl_mode = disable
  45. ; For "sqlite3" only, path is relative to data_dir
  46. path = grafana.db
  47. [session]
  48. ; Either "memory", "file", "redis", "mysql", default is "memory"
  49. provider = file
  50. ; Provider config options
  51. ; memory: not have any config yet
  52. ; file: session file path, e.g. `sessions`, relative to data_dir
  53. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  54. ; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  55. provider_config = sessions
  56. ; Session cookie name
  57. cookie_name = grafana_sess
  58. ; If you use session in https only, default is false
  59. cookie_secure = false
  60. ; Session life time, default is 86400
  61. session_life_time = 86400
  62. [security]
  63. ; default admin user, created on startup
  64. admin_user = admin
  65. ; default admin password, can be changed before first start of grafana, or in profile settings
  66. admin_password = admin
  67. ; used for signing
  68. secret_key = SW2YcwTIb9zpOOhoPsMm
  69. ; Auto-login remember days
  70. login_remember_days = 7
  71. cookie_username = grafana_user
  72. cookie_remember_name = grafana_remember
  73. [users]
  74. ; disable user signup / registration
  75. allow_sign_up = true
  76. ; Allow non admin users to create organizations
  77. allow_org_create = true
  78. # Set to true to automatically assign new users to the default organization (id 1)
  79. auto_assign_org = true
  80. ; Default role new users will be automatically assigned (if disabled above is set to true)
  81. auto_assign_org_role = Viewer
  82. [auth.anonymous]
  83. ; enable anonymous access
  84. enabled = false
  85. ; specify organization name that should be used for unauthenticated users
  86. org_name = Main org.
  87. ; specify role for unauthenticated users
  88. org_role = Viewer
  89. [log]
  90. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  91. level = Info
  92. mode = console, file
  93. ; root_path, this option is passed via command line args,
  94. ; override this option in /etc/default/grafana
  95. ; defaults to /var/log/grafana/
  96. root_path =