defaults.ini 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. #################################### Users ####################################
  98. [users]
  99. # disable user signup / registration
  100. allow_sign_up = true
  101. # Allow non admin users to create organizations
  102. allow_org_create = true
  103. # Set to true to automatically assign new users to the default organization (id 1)
  104. auto_assign_org = true
  105. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  106. auto_assign_org_role = Viewer
  107. # Require email validation before sign up completes
  108. verify_email_enabled = false
  109. # Background text for the user field on the login page
  110. login_hint = email or username
  111. #################################### Anonymous Auth ##########################
  112. [auth.anonymous]
  113. # enable anonymous access
  114. enabled = false
  115. # specify organization name that should be used for unauthenticated users
  116. org_name = Main Org.
  117. # specify role for unauthenticated users
  118. org_role = Viewer
  119. #################################### Github Auth ##########################
  120. [auth.github]
  121. enabled = false
  122. allow_sign_up = false
  123. client_id = some_id
  124. client_secret = some_secret
  125. scopes = user:email
  126. auth_url = https://github.com/login/oauth/authorize
  127. token_url = https://github.com/login/oauth/access_token
  128. api_url = https://api.github.com/user
  129. team_ids =
  130. allowed_organizations =
  131. #################################### Google Auth ##########################
  132. [auth.google]
  133. enabled = false
  134. allow_sign_up = false
  135. client_id = some_client_id
  136. client_secret = some_client_secret
  137. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  138. auth_url = https://accounts.google.com/o/oauth2/auth
  139. token_url = https://accounts.google.com/o/oauth2/token
  140. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  141. allowed_domains =
  142. #################################### Basic Auth ##########################
  143. [auth.basic]
  144. enabled = true
  145. #################################### Auth Proxy ##########################
  146. [auth.proxy]
  147. enabled = false
  148. header_name = X-WEBAUTH-USER
  149. header_property = username
  150. auto_sign_up = true
  151. #################################### Auth LDAP ##########################
  152. [auth.ldap]
  153. enabled = false
  154. config_file = /etc/grafana/ldap.toml
  155. #################################### SMTP / Emailing ##########################
  156. [smtp]
  157. enabled = false
  158. host = localhost:25
  159. user =
  160. password =
  161. cert_file =
  162. key_file =
  163. skip_verify = false
  164. from_address = admin@grafana.localhost
  165. [emails]
  166. welcome_email_on_sign_up = false
  167. templates_pattern = emails/*.html
  168. #################################### Logging ##########################
  169. [log]
  170. # Either "console", "file", default is "console"
  171. # Use comma to separate multiple modes, e.g. "console, file"
  172. mode = console, file
  173. # Buffer length of channel, keep it as it is if you don't know what it is.
  174. buffer_len = 10000
  175. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  176. level = Info
  177. # For "console" mode only
  178. [log.console]
  179. level =
  180. # Set formatting to "false" to disable color formatting of console logs
  181. formatting = false
  182. # For "file" mode only
  183. [log.file]
  184. level =
  185. # This enables automated log rotate(switch of following options), default is true
  186. log_rotate = true
  187. # Max line number of single file, default is 1000000
  188. max_lines = 1000000
  189. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  190. max_lines_shift = 28
  191. # Segment log daily, default is true
  192. daily_rotate = true
  193. # Expired days of log file(delete after max days), default is 7
  194. max_days = 7
  195. [log.syslog]
  196. level =
  197. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  198. network =
  199. address =
  200. # Syslog facility. user, daemon and local0 through local7 are valid.
  201. facility =
  202. # Syslog tag. By default, the process' argv[0] is used.
  203. tag =
  204. #################################### AMPQ Event Publisher ##########################
  205. [event_publisher]
  206. enabled = false
  207. rabbitmq_url = amqp://localhost/
  208. exchange = grafana_events
  209. #################################### Dashboard JSON files ##########################
  210. [dashboards.json]
  211. enabled = false
  212. path = /var/lib/grafana/dashboards
  213. #################################### Usage Quotas ##########################
  214. [quota]
  215. enabled = false
  216. #### set quotas to -1 to make unlimited. ####
  217. # limit number of users per Org.
  218. org_user = 10
  219. # limit number of dashboards per Org.
  220. org_dashboard = 100
  221. # limit number of data_sources per Org.
  222. org_data_source = 10
  223. # limit number of api_keys per Org.
  224. org_api_key = 10
  225. # limit number of orgs a user can create.
  226. user_org = 10
  227. # Global limit of users.
  228. global_user = -1
  229. # global limit of orgs.
  230. global_org = -1
  231. # global limit of dashboards
  232. global_dashboard = -1
  233. # global limit of api_keys
  234. global_api_key = -1
  235. # global limit on number of logged in users.
  236. global_session = -1