sample.ini 2.3 KB

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