defaults.ini 4.2 KB

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