defaults.ini 8.6 KB

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