sample.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. [session]
  41. ; Either "memory", "file", "redis", "mysql", default is "memory"
  42. provider = file
  43. ; Provider config options
  44. ; memory: not have any config yet
  45. ; file: session file path, e.g. `data/sessions`
  46. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  47. ; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  48. provider_config = /opt/grafana/data/sessions
  49. ; Session cookie name
  50. cookie_name = grafana_sess
  51. ; If you use session in https only, default is false
  52. cookie_secure = false
  53. ; Session life time, default is 86400
  54. session_life_time = 86400
  55. [security]
  56. ; default admin user, created on startup
  57. admin_user = admin
  58. ; default admin password, can be changed before first start of grafana, or in profile settings
  59. admin_password = admin
  60. ; used for signing
  61. secret_key = SW2YcwTIb9zpOOhoPsMm
  62. ; Auto-login remember days
  63. login_remember_days = 7
  64. cookie_username = grafana_user
  65. cookie_remember_name = grafana_remember
  66. [users]
  67. ; disable user signup / registration
  68. allow_sign_up = true
  69. ; Allow non admin users to create organizations
  70. allow_org_create = true
  71. # Set to true to automatically assign new users to the default organization (id 1)
  72. auto_assign_org = true
  73. ; Default role new users will be automatically assigned (if disabled above is set to true)
  74. auto_assign_org_role = Viewer
  75. [auth.anonymous]
  76. ; enable anonymous access
  77. enabled = false
  78. ; specify organization name that should be used for unauthenticated users
  79. org_name = Main org.
  80. ; specify role for unauthenticated users
  81. org_role = Viewer
  82. [log]
  83. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  84. level = Info
  85. mode = console, file
  86. root_path = /var/log/grafana