defaults.ini 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. app_name = Grafana
  2. app_mode = production
  3. # Report anonymous usage counters to stats.grafana.org (https).
  4. # No ip addresses are being tracked, only simple counters to track
  5. # running instances, dashboard count and errors. It is very helpful to us.
  6. # Change this option to false to disable reporting.
  7. reporting-enabled = true
  8. [server]
  9. ; protocol (http or https)
  10. protocol = http
  11. ; the ip address to bind to, empty will bind to all interfaces
  12. http_addr =
  13. ; the http port to use
  14. http_port = 3000
  15. ; The public facing domain name used to access grafana from a browser
  16. domain = localhost
  17. ; the full public facing url
  18. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  19. router_logging = false
  20. ; the path relative to the binary where the static (html/js/css) files are placed
  21. static_root_path = public
  22. enable_gzip = false
  23. ; if https protocol
  24. cert_file =
  25. cert_key =
  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 = data/grafana.db
  37. [session]
  38. ; Either "memory", "file", "redis", "mysql", default is "memory"
  39. provider = file
  40. ; Provider config options
  41. ; memory: not have any config yet
  42. ; file: session file path, e.g. `data/sessions`
  43. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  44. ; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  45. provider_config = data/sessions
  46. ; Session cookie name
  47. cookie_name = grafana_sess
  48. ; If you use session in https only, default is false
  49. cookie_secure = false
  50. ; Session life time, default is 86400
  51. session_life_time = 86400
  52. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  53. session_id_hashfunc = sha1
  54. ; Session hash key, default is use random string
  55. session_id_hashkey =
  56. [security]
  57. ; default admin user, created on startup
  58. admin_user = admin
  59. ; default admin password, can be changed before first start of grafana, or in profile settings
  60. admin_password = admin
  61. ; used for signing
  62. secret_key = SW2YcwTIb9zpOOhoPsMm
  63. ; Auto-login remember days
  64. login_remember_days = 7
  65. cookie_username = grafana_user
  66. cookie_remember_name = grafana_remember
  67. [users]
  68. ; disable user signup / registration
  69. allow_sign_up = true
  70. ; Allow non admin users to create organizations
  71. allow_org_create = true
  72. # Set to true to automatically assign new users to the default organization (id 1)
  73. auto_assign_org = true
  74. ; Default role new users will be automatically assigned (if disabled above is set to true)
  75. auto_assign_org_role = Viewer
  76. [auth.anonymous]
  77. ; enable anonymous access
  78. enabled = false
  79. ; specify organization name that should be used for unauthenticated users
  80. org_name = Main Org.
  81. ; specify role for unauthenticated users
  82. org_role = Viewer
  83. [auth.github]
  84. enabled = false
  85. client_id = some_id
  86. client_secret = some_secret
  87. scopes = user:email
  88. auth_url = https://github.com/login/oauth/authorize
  89. token_url = https://github.com/login/oauth/access_token
  90. [auth.google]
  91. enabled = false
  92. client_id = some_client_id
  93. client_secret = some_client_secret
  94. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  95. auth_url = https://accounts.google.com/o/oauth2/auth
  96. token_url = https://accounts.google.com/o/oauth2/token
  97. [log]
  98. root_path = data/log
  99. ; Either "console", "file", default is "console"
  100. ; Use comma to separate multiple modes, e.g. "console, file"
  101. mode = console
  102. ; Buffer length of channel, keep it as it is if you don't know what it is.
  103. buffer_len = 10000
  104. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  105. level = Info
  106. ; For "console" mode only
  107. [log.console]
  108. level =
  109. ; For "file" mode only
  110. [log.file]
  111. level =
  112. ; This enables automated log rotate(switch of following options), default is true
  113. log_rotate = true
  114. ; Max line number of single file, default is 1000000
  115. max_lines = 1000000
  116. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  117. max_lines_shift = 28
  118. ; Segment log daily, default is true
  119. daily_rotate = true
  120. ; Expired days of log file(delete after max days), default is 7
  121. max_days = 7
  122. [event_publisher]
  123. enabled = false
  124. rabbitmq_url = amqp://localhost/
  125. exchange = grafana_events