defaults.ini 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. ##################### Grafana Configuration Defaults #####################
  2. #
  3. # Do not modify this file in grafana installs
  4. #
  5. # possible values : production, development
  6. app_mode = production
  7. #################################### Paths ####################################
  8. [paths]
  9. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  10. #
  11. data = data
  12. #
  13. # Directory where grafana can store logs
  14. #
  15. logs = data/log
  16. #################################### Server ####################################
  17. [server]
  18. # Protocol (http or https)
  19. protocol = http
  20. # The ip address to bind to, empty will bind to all interfaces
  21. http_addr =
  22. # The http port to use
  23. http_port = 3000
  24. # The public facing domain name used to access grafana from a browser
  25. domain = localhost
  26. # Redirect to correct domain if host header does not match domain
  27. # Prevents DNS rebinding attacks
  28. enforce_domain = false
  29. # The full public facing url
  30. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  31. # Log web requests
  32. router_logging = false
  33. # the path relative working path
  34. static_root_path = public
  35. # enable gzip
  36. enable_gzip = false
  37. # https certs & key file
  38. cert_file =
  39. cert_key =
  40. #################################### Database ####################################
  41. [database]
  42. # Either "mysql", "postgres" or "sqlite3", it's your choice
  43. type = sqlite3
  44. host = 127.0.0.1:3306
  45. name = grafana
  46. user = root
  47. password =
  48. # For "postgres" only, either "disable", "require" or "verify-full"
  49. ssl_mode = disable
  50. # For "sqlite3" only, path relative to data_path setting
  51. path = grafana.db
  52. #################################### Session ####################################
  53. [session]
  54. # Either "memory", "file", "redis", "mysql", "postgres", default is "file"
  55. provider = file
  56. # Provider config options
  57. # memory: not have any config yet
  58. # file: session dir path, is relative to grafana data_path
  59. # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
  60. # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
  61. # mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
  62. provider_config = sessions
  63. # Session cookie name
  64. cookie_name = grafana_sess
  65. # If you use session in https only, default is false
  66. cookie_secure = false
  67. # Session life time, default is 86400
  68. session_life_time = 86400
  69. gc_interval_time = 86400
  70. #################################### Analytics ####################################
  71. [analytics]
  72. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  73. # No ip addresses are being tracked, only simple counters to track
  74. # running instances, dashboard and error counts. It is very helpful to us.
  75. # Change this option to false to disable reporting.
  76. reporting_enabled = true
  77. # Google Analytics universal tracking code, only enabled if you specify an id here
  78. google_analytics_ua_id =
  79. # Google Tag Manager ID, only enabled if you specify an id here
  80. google_tag_manager_id =
  81. #################################### Security ####################################
  82. [security]
  83. # default admin user, created on startup
  84. admin_user = admin
  85. # default admin password, can be changed before first start of grafana, or in profile settings
  86. admin_password = admin
  87. # used for signing
  88. secret_key = SW2YcwTIb9zpOOhoPsMm
  89. # Auto-login remember days
  90. login_remember_days = 7
  91. cookie_username = grafana_user
  92. cookie_remember_name = grafana_remember
  93. # disable gravatar profile images
  94. disable_gravatar = false
  95. # data source proxy whitelist (ip_or_domain:port seperated by spaces)
  96. data_source_proxy_whitelist =
  97. [snapshots]
  98. # snapshot sharing options
  99. external_enabled = true
  100. external_snapshot_url = https://snapshots-origin.raintank.io
  101. external_snapshot_name = Publish to snapshot.raintank.io
  102. #################################### Users ####################################
  103. [users]
  104. # disable user signup / registration
  105. allow_sign_up = true
  106. # Allow non admin users to create organizations
  107. allow_org_create = true
  108. # Set to true to automatically assign new users to the default organization (id 1)
  109. auto_assign_org = true
  110. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  111. auto_assign_org_role = Viewer
  112. # Require email validation before sign up completes
  113. verify_email_enabled = false
  114. # Background text for the user field on the login page
  115. login_hint = email or username
  116. #################################### Anonymous Auth ##########################
  117. [auth.anonymous]
  118. # enable anonymous access
  119. enabled = false
  120. # specify organization name that should be used for unauthenticated users
  121. org_name = Main Org.
  122. # specify role for unauthenticated users
  123. org_role = Viewer
  124. #################################### Github Auth ##########################
  125. [auth.github]
  126. enabled = false
  127. allow_sign_up = false
  128. client_id = some_id
  129. client_secret = some_secret
  130. scopes = user:email
  131. auth_url = https://github.com/login/oauth/authorize
  132. token_url = https://github.com/login/oauth/access_token
  133. api_url = https://api.github.com/user
  134. team_ids =
  135. allowed_organizations =
  136. #################################### Google Auth ##########################
  137. [auth.google]
  138. enabled = false
  139. allow_sign_up = false
  140. client_id = some_client_id
  141. client_secret = some_client_secret
  142. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  143. auth_url = https://accounts.google.com/o/oauth2/auth
  144. token_url = https://accounts.google.com/o/oauth2/token
  145. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  146. allowed_domains =
  147. #################################### Basic Auth ##########################
  148. [auth.basic]
  149. enabled = true
  150. #################################### Auth Proxy ##########################
  151. [auth.proxy]
  152. enabled = false
  153. header_name = X-WEBAUTH-USER
  154. header_property = username
  155. auto_sign_up = true
  156. #################################### Auth LDAP ##########################
  157. [auth.ldap]
  158. enabled = false
  159. config_file = /etc/grafana/ldap.toml
  160. #################################### SMTP / Emailing ##########################
  161. [smtp]
  162. enabled = false
  163. host = localhost:25
  164. user =
  165. password =
  166. cert_file =
  167. key_file =
  168. skip_verify = false
  169. from_address = admin@grafana.localhost
  170. [emails]
  171. welcome_email_on_sign_up = false
  172. templates_pattern = emails/*.html
  173. #################################### Logging ##########################
  174. [log]
  175. # Either "console", "file", default is "console"
  176. # Use comma to separate multiple modes, e.g. "console, file"
  177. mode = console, file
  178. # Buffer length of channel, keep it as it is if you don't know what it is.
  179. buffer_len = 10000
  180. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  181. level = Info
  182. # For "console" mode only
  183. [log.console]
  184. level =
  185. # Set formatting to "false" to disable color formatting of console logs
  186. formatting = false
  187. # For "file" mode only
  188. [log.file]
  189. level =
  190. # This enables automated log rotate(switch of following options), default is true
  191. log_rotate = true
  192. # Max line number of single file, default is 1000000
  193. max_lines = 1000000
  194. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  195. max_lines_shift = 28
  196. # Segment log daily, default is true
  197. daily_rotate = true
  198. # Expired days of log file(delete after max days), default is 7
  199. max_days = 7
  200. [log.syslog]
  201. level =
  202. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  203. network =
  204. address =
  205. # Syslog facility. user, daemon and local0 through local7 are valid.
  206. facility =
  207. # Syslog tag. By default, the process' argv[0] is used.
  208. tag =
  209. #################################### AMPQ Event Publisher ##########################
  210. [event_publisher]
  211. enabled = false
  212. rabbitmq_url = amqp://localhost/
  213. exchange = grafana_events
  214. #################################### Dashboard JSON files ##########################
  215. [dashboards.json]
  216. enabled = false
  217. path = /var/lib/grafana/dashboards
  218. #################################### Usage Quotas ##########################
  219. [quota]
  220. enabled = false
  221. #### set quotas to -1 to make unlimited. ####
  222. # limit number of users per Org.
  223. org_user = 10
  224. # limit number of dashboards per Org.
  225. org_dashboard = 100
  226. # limit number of data_sources per Org.
  227. org_data_source = 10
  228. # limit number of api_keys per Org.
  229. org_api_key = 10
  230. # limit number of orgs a user can create.
  231. user_org = 10
  232. # Global limit of users.
  233. global_user = -1
  234. # global limit of orgs.
  235. global_org = -1
  236. # global limit of dashboards
  237. global_dashboard = -1
  238. # global limit of api_keys
  239. global_api_key = -1
  240. # global limit on number of logged in users.
  241. global_session = -1