defaults.ini 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. ; if https protocol
  19. cert_file =
  20. cert_key =
  21. [database]
  22. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  23. type = sqlite3
  24. host = 127.0.0.1:3306
  25. name = grafana
  26. user = root
  27. password =
  28. ; For "postgres" only, either "disable", "require" or "verify-full"
  29. ssl_mode = disable
  30. ; For "sqlite3" only
  31. path = data/grafana.db
  32. [session]
  33. ; Either "memory", "file", "redis", "mysql", default is "memory"
  34. provider = file
  35. ; Provider config options
  36. ; memory: not have any config yet
  37. ; file: session file path, e.g. `data/sessions`
  38. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  39. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  40. provider_config = data/sessions
  41. ; Session cookie name
  42. cookie_name = grafana_sess
  43. ; If you use session in https only, default is false
  44. cookie_secure = false
  45. ; Session life time, default is 86400
  46. session_life_time = 86400
  47. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  48. session_id_hashfunc = sha1
  49. ; Session hash key, default is use random string
  50. session_id_hashkey =
  51. [security]
  52. ; default admin user, created on startup
  53. admin_user = admin
  54. ; default admin password, can be changed before first start of grafana, or in profile settings
  55. admin_password = admin
  56. ; used for signing
  57. secret_key = SW2YcwTIb9zpOOhoPsMm
  58. ; Auto-login remember days
  59. login_remember_days = 7
  60. cookie_username = grafana_user
  61. cookie_remember_name = grafana_remember
  62. [users]
  63. ; disable user signup / registration
  64. allow_sign_up = true
  65. ; Allow non admin users to create organizations
  66. allow_org_create = true
  67. # Set to true to automatically assign new users to the default organization (id 1)
  68. auto_assign_org = true
  69. ; Default role new users will be automatically assigned (if disabled above is set to true)
  70. auto_assign_org_role = Viewer
  71. [auth.anonymous]
  72. ; enable anonymous access
  73. enabled = false
  74. ; specify organization name that should be used for unauthenticated users
  75. org_name = Main Org.
  76. ; specify role for unauthenticated users
  77. org_role = Viewer
  78. [auth.github]
  79. enabled = false
  80. client_id = some_id
  81. client_secret = some_secret
  82. scopes = user:email
  83. auth_url = https://github.com/login/oauth/authorize
  84. token_url = https://github.com/login/oauth/access_token
  85. [auth.google]
  86. enabled = false
  87. client_id = some_client_id
  88. client_secret = some_client_secret
  89. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  90. auth_url = https://accounts.google.com/o/oauth2/auth
  91. token_url = https://accounts.google.com/o/oauth2/token
  92. [log]
  93. root_path = data/log
  94. ; Either "console", "file", default is "console"
  95. ; Use comma to separate multiple modes, e.g. "console, file"
  96. mode = console
  97. ; Buffer length of channel, keep it as it is if you don't know what it is.
  98. buffer_len = 10000
  99. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  100. level = Info
  101. ; For "console" mode only
  102. [log.console]
  103. level =
  104. ; For "file" mode only
  105. [log.file]
  106. level =
  107. ; This enables automated log rotate(switch of following options), default is true
  108. log_rotate = true
  109. ; Max line number of single file, default is 1000000
  110. max_lines = 1000000
  111. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  112. max_lines_shift = 28
  113. ; Segment log daily, default is true
  114. daily_rotate = true
  115. ; Expired days of log file(delete after max days), default is 7
  116. max_days = 7
  117. [event_publisher]
  118. enabled = false
  119. rabbitmq_url = amqp://localhost/
  120. exchange = grafana_events