sample.ini 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. [server]
  7. ; protocol (http or https)
  8. protocol = http
  9. ; the ip address to bind to, empty will bind to all interfaces
  10. http_addr =
  11. ; the http port to use
  12. http_port = 3000
  13. ; The public facing domain name used to access grafana from a browser
  14. domain = localhost
  15. ; the full public facing url
  16. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  17. router_logging = false
  18. ; the path relative to grafana process working directory
  19. static_root_path = public
  20. enable_gzip = false
  21. [analytics]
  22. # Server reporting, sends usage counters to stats.grafana.org (https).
  23. # No ip addresses are being tracked, only simple counters to track
  24. # running instances, dashboard and error counts. It is very helpful to us.
  25. # Change this option to false to disable reporting.
  26. reporting_enabled = true
  27. ; Google Analytics universal tracking code, only enabled if you specify an id here
  28. google_analytics_ua_id =
  29. [database]
  30. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  31. type = sqlite3
  32. host = 127.0.0.1:3306
  33. name = grafana
  34. user = root
  35. password =
  36. ; For "postgres" only, either "disable", "require" or "verify-full"
  37. ssl_mode = disable
  38. ; For "sqlite3" only
  39. path = /opt/grafana/data/grafana.db
  40. [security]
  41. ; default admin user, created on startup
  42. admin_user = admin
  43. ; default admin password, can be changed before first start of grafana, or in profile settings
  44. admin_password = admin
  45. ; used for signing
  46. secret_key = SW2YcwTIb9zpOOhoPsMm
  47. ; Auto-login remember days
  48. login_remember_days = 7
  49. cookie_username = grafana_user
  50. cookie_remember_name = grafana_remember
  51. [users]
  52. ; disable user signup / registration
  53. allow_sign_up = true
  54. ; Allow non admin users to create organizations
  55. allow_org_create = true
  56. # Set to true to automatically assign new users to the default organization (id 1)
  57. auto_assign_org = true
  58. ; Default role new users will be automatically assigned (if disabled above is set to true)
  59. auto_assign_org_role = Viewer
  60. [auth.anonymous]
  61. ; enable anonymous access
  62. enabled = false
  63. ; specify organization name that should be used for unauthenticated users
  64. org_name = Main org.
  65. ; specify role for unauthenticated users
  66. org_role = Viewer
  67. [log]
  68. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  69. level = Info
  70. mode = console, file
  71. root_path = /var/log/grafana