defaults.ini 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. ; Session life time, default is 86400
  43. session_life_time = 86400
  44. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  45. session_id_hashfunc = sha1
  46. ; Session hash key, default is use random string
  47. session_id_hashkey =
  48. [security]
  49. ; default admin user, created on startup
  50. admin_user = admin
  51. ; default admin password, can be changed before first start of grafana, or in profile settings
  52. admin_password = admin
  53. ; used for signing
  54. secret_key = SW2YcwTIb9zpOOhoPsMm
  55. ; Auto-login remember days
  56. login_remember_days = 7
  57. cookie_username = grafana_user
  58. cookie_remember_name = grafana_remember
  59. [users]
  60. ; disable user signup / registration
  61. allow_sign_up = true
  62. ; Allow non admin users to create organizations
  63. allow_org_create = true
  64. # Set to true to automatically assign new users to the default organization (id 1)
  65. auto_assign_org = true
  66. ; Default role new users will be automatically assigned (if disabled above is set to true)
  67. auto_assign_org_role = Viewer
  68. [auth.anonymous]
  69. ; enable anonymous access
  70. enabled = false
  71. ; specify organization name that should be used for unauthenticated users
  72. org_name = Main org.
  73. ; specify role for unauthenticated users
  74. org_role = Viewer
  75. [auth.github]
  76. enabled = false
  77. client_id = some_id
  78. client_secret = some_secret
  79. scopes = user:email
  80. auth_url = https://github.com/login/oauth/authorize
  81. token_url = https://github.com/login/oauth/access_token
  82. [auth.google]
  83. enabled = false
  84. client_id = some_client_id
  85. client_secret = some_client_secret
  86. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  87. auth_url = https://accounts.google.com/o/oauth2/auth
  88. token_url = https://accounts.google.com/o/oauth2/token
  89. [log]
  90. root_path = data/log
  91. ; Either "console", "file", default is "console"
  92. ; Use comma to separate multiple modes, e.g. "console, file"
  93. mode = console
  94. ; Buffer length of channel, keep it as it is if you don't know what it is.
  95. buffer_len = 10000
  96. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  97. level = Info
  98. ; For "console" mode only
  99. [log.console]
  100. level =
  101. ; For "file" mode only
  102. [log.file]
  103. level =
  104. ; This enables automated log rotate(switch of following options), default is true
  105. log_rotate = true
  106. ; Max line number of single file, default is 1000000
  107. max_lines = 1000000
  108. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  109. max_lines_shift = 28
  110. ; Segment log daily, default is true
  111. daily_rotate = true
  112. ; Expired days of log file(delete after max days), default is 7
  113. max_days = 7
  114. [event_publisher]
  115. enabled = false
  116. rabbitmq_url = amqp://localhost/
  117. exchange = grafana_events