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