defaults.ini 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. ##################### Grafana Configuration Defaults #####################
  2. #
  3. # Do not modify this file in grafana installs
  4. #
  5. app_mode = production
  6. #################################### Paths ####################################
  7. [paths]
  8. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  9. #
  10. data = data
  11. #
  12. # Directory where grafana can store logs
  13. #
  14. logs = data/log
  15. #################################### Server ####################################
  16. [server]
  17. # Protocol (http or https)
  18. protocol = http
  19. # The ip address to bind to, empty will bind to all interfaces
  20. http_addr =
  21. # The http port to use
  22. http_port = 3000
  23. # The public facing domain name used to access grafana from a browser
  24. domain = localhost
  25. # Redirect to correct domain if host header does not match domain
  26. # Prevents DNS rebinding attacks
  27. enforce_domain = false
  28. # The full public facing url
  29. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  30. # Log web requests
  31. router_logging = false
  32. # the path relative working path
  33. static_root_path = public
  34. # enable gzip
  35. enable_gzip = false
  36. # https certs & key file
  37. cert_file =
  38. cert_key =
  39. #################################### Database ####################################
  40. [database]
  41. # Either "mysql", "postgres" or "sqlite3", it's your choice
  42. type = sqlite3
  43. host = 127.0.0.1:3306
  44. name = grafana
  45. user = root
  46. password =
  47. # For "postgres" only, either "disable", "require" or "verify-full"
  48. ssl_mode = disable
  49. # For "sqlite3" only, path relative to data_path setting
  50. path = grafana.db
  51. #################################### Session ####################################
  52. [session]
  53. # Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
  54. provider = file
  55. # Provider config options
  56. # memory: not have any config yet
  57. # file: session dir path, is relative to grafana data_path
  58. # redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  59. # mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  60. provider_config = sessions
  61. # Session cookie name
  62. cookie_name = grafana_sess
  63. # If you use session in https only, default is false
  64. cookie_secure = false
  65. # Session life time, default is 86400
  66. session_life_time = 86400
  67. #################################### Analytics ####################################
  68. [analytics]
  69. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  70. # No ip addresses are being tracked, only simple counters to track
  71. # running instances, dashboard and error counts. It is very helpful to us.
  72. # Change this option to false to disable reporting.
  73. reporting_enabled = true
  74. # Google Analytics universal tracking code, only enabled if you specify an id here
  75. google_analytics_ua_id =
  76. #################################### Security ####################################
  77. [security]
  78. # default admin user, created on startup
  79. admin_user = admin
  80. # default admin password, can be changed before first start of grafana, or in profile settings
  81. admin_password = admin
  82. # used for signing
  83. secret_key = SW2YcwTIb9zpOOhoPsMm
  84. # Auto-login remember days
  85. login_remember_days = 7
  86. cookie_username = grafana_user
  87. cookie_remember_name = grafana_remember
  88. # disable gravatar profile images
  89. disable_gravatar = false
  90. #################################### Users ####################################
  91. [users]
  92. # disable user signup / registration
  93. allow_sign_up = true
  94. # Allow non admin users to create organizations
  95. allow_org_create = true
  96. # Set to true to automatically assign new users to the default organization (id 1)
  97. auto_assign_org = true
  98. # Default role new users will be automatically assigned (if disabled above is set to true)
  99. auto_assign_org_role = Viewer
  100. #################################### Anonymous Auth ##########################
  101. [auth.anonymous]
  102. # enable anonymous access
  103. enabled = false
  104. # specify organization name that should be used for unauthenticated users
  105. org_name = Main Org.
  106. # specify role for unauthenticated users
  107. org_role = Viewer
  108. #################################### Github Auth ##########################
  109. [auth.github]
  110. enabled = false
  111. allow_sign_up = false
  112. client_id = some_id
  113. client_secret = some_secret
  114. scopes = user:email
  115. auth_url = https://github.com/login/oauth/authorize
  116. token_url = https://github.com/login/oauth/access_token
  117. api_url = https://api.github.com/user
  118. team_ids =
  119. allowed_domains =
  120. #################################### Google Auth ##########################
  121. [auth.google]
  122. enabled = false
  123. allow_sign_up = false
  124. client_id = some_client_id
  125. client_secret = some_client_secret
  126. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  127. auth_url = https://accounts.google.com/o/oauth2/auth
  128. token_url = https://accounts.google.com/o/oauth2/token
  129. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  130. allowed_domains =
  131. #################################### Auth Proxy ##########################
  132. [auth.proxy]
  133. enabled = false
  134. header_name = X-WEBAUTH-USER
  135. header_property = username
  136. auto_sign_up = true
  137. #################################### Logging ##########################
  138. [log]
  139. # Either "console", "file", default is "console"
  140. # Use comma to separate multiple modes, e.g. "console, file"
  141. mode = console, file
  142. # Buffer length of channel, keep it as it is if you don't know what it is.
  143. buffer_len = 10000
  144. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  145. level = Info
  146. # For "console" mode only
  147. [log.console]
  148. level =
  149. # For "file" mode only
  150. [log.file]
  151. level =
  152. # This enables automated log rotate(switch of following options), default is true
  153. log_rotate = true
  154. # Max line number of single file, default is 1000000
  155. max_lines = 1000000
  156. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  157. max_lines_shift = 28
  158. # Segment log daily, default is true
  159. daily_rotate = true
  160. # Expired days of log file(delete after max days), default is 7
  161. max_days = 7
  162. #################################### AMPQ Event Publisher ##########################
  163. [event_publisher]
  164. enabled = false
  165. rabbitmq_url = amqp://localhost/
  166. exchange = grafana_events