defaults.ini 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. app_name = Grafana
  2. app_mode = production
  3. [server]
  4. ; protocol (http or https)
  5. protocol = http
  6. ; the ip address to bind to, empty will bind to all interfaces
  7. http_addr =
  8. ; the http port to use
  9. http_port = 3000
  10. ; The public facing domain name used to access grafana from a browser
  11. domain = localhost
  12. ; the full public facing url
  13. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  14. router_logging = false
  15. ; the path relative to the binary where the static (html/js/css) files are placed
  16. static_root_path = public
  17. enable_gzip = false
  18. [database]
  19. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  20. type = sqlite3
  21. host = 127.0.0.1:3306
  22. name = grafana
  23. user = root
  24. password =
  25. ; For "postgres" only, either "disable", "require" or "verify-full"
  26. ssl_mode = disable
  27. ; For "sqlite3" only
  28. path = data/grafana.db
  29. [session]
  30. ; Either "memory", "file", "redis", "mysql", default is "memory"
  31. provider = file
  32. ; Provider config options
  33. ; memory: not have any config yet
  34. ; file: session file path, e.g. `data/sessions`
  35. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  36. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  37. provider_config = data/sessions
  38. ; Session cookie name
  39. cookie_name = grafana_sess
  40. ; If you use session in https only, default is false
  41. cookie_secure = false
  42. ; Enable set cookie, default is true
  43. enable_set_cookie = true
  44. ; Session GC time interval, default is 86400
  45. gc_time_interval = 86400
  46. ; Session life time, default is 86400
  47. session_life_time = 86400
  48. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  49. session_id_hashfunc = sha1
  50. ; Session hash key, default is use random string
  51. session_id_hashkey =
  52. [security]
  53. ; default admin user, created on startup
  54. admin_user = admin
  55. ; default admin password, can be changed before first start of grafana, or in profile settings
  56. admin_password = admin
  57. ; used for signing
  58. secret_key = SW2YcwTIb9zpOOhoPsMm
  59. ; Auto-login remember days
  60. login_remember_days = 7
  61. cookie_username = grafana_user
  62. cookie_remember_name = grafana_remember
  63. ; disable user signup / registration
  64. disable_user_signup = false
  65. [account.single]
  66. ; Enable this feature to auto assign new users to a single account, suitable for NON multi tenant setups
  67. enabled = true
  68. ; Name of default account
  69. account_name = main
  70. ; Default role new users will be automatically assigned
  71. default_role = Editor
  72. [auth.anonymous]
  73. ; enable anonymous access
  74. enabled = false
  75. ; specify account name that should be used for unauthenticated users
  76. account_name = main
  77. ; specify role for unauthenticated users
  78. account_role = Viewer
  79. [auth.github]
  80. enabled = false
  81. client_id = some_id
  82. client_secret = some_secret
  83. scopes = user:email
  84. auth_url = https://github.com/login/oauth/authorize
  85. token_url = https://github.com/login/oauth/access_token
  86. [auth.google]
  87. enabled = false
  88. client_id = some_client_id
  89. client_secret = some_client_secret
  90. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  91. auth_url = https://accounts.google.com/o/oauth2/auth
  92. token_url = https://accounts.google.com/o/oauth2/token
  93. [log]
  94. root_path = data/log
  95. ; Either "console", "file", default is "console"
  96. ; Use comma to separate multiple modes, e.g. "console, file"
  97. mode = console
  98. ; Buffer length of channel, keep it as it is if you don't know what it is.
  99. buffer_len = 10000
  100. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  101. level = Info
  102. ; For "console" mode only
  103. [log.console]
  104. level =
  105. ; For "file" mode only
  106. [log.file]
  107. level =
  108. ; This enables automated log rotate(switch of following options), default is true
  109. log_rotate = true
  110. ; Max line number of single file, default is 1000000
  111. max_lines = 1000000
  112. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  113. max_lines_shift = 28
  114. ; Segment log daily, default is true
  115. daily_rotate = true
  116. ; Expired days of log file(delete after max days), default is 7
  117. max_days = 7
  118. [event_publisher]
  119. enabled = false
  120. rabbitmq_url = amqp://localhost/
  121. exchange = grafana_events