defaults.ini 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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", use either "disable", "require" or "verify-full"
  53. # For "mysql", use either "true", "false", or "skip-verify".
  54. ssl_mode = disable
  55. ca_cert_path =
  56. client_key_path =
  57. client_cert_path =
  58. server_cert_name =
  59. # For "sqlite3" only, path relative to data_path setting
  60. path = grafana.db
  61. #################################### Session ####################################
  62. [session]
  63. # Either "memory", "file", "redis", "mysql", "postgres", "memcache", default is "file"
  64. provider = file
  65. # Provider config options
  66. # memory: not have any config yet
  67. # file: session dir path, is relative to grafana data_path
  68. # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
  69. # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
  70. # mysql: go-sql-driver/mysql dsn config string, examples:
  71. # `user:password@tcp(127.0.0.1:3306)/database_name`
  72. # `user:password@unix(/var/run/mysqld/mysqld.sock)/database_name`
  73. # memcache: 127.0.0.1:11211
  74. provider_config = sessions
  75. # Session cookie name
  76. cookie_name = grafana_sess
  77. # If you use session in https only, default is false
  78. cookie_secure = false
  79. # Session life time, default is 86400
  80. session_life_time = 86400
  81. gc_interval_time = 86400
  82. #################################### Analytics ####################################
  83. [analytics]
  84. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  85. # No ip addresses are being tracked, only simple counters to track
  86. # running instances, dashboard and error counts. It is very helpful to us.
  87. # Change this option to false to disable reporting.
  88. reporting_enabled = true
  89. # Set to false to disable all checks to https://grafana.net
  90. # for new vesions (grafana itself and plugins), check is used
  91. # in some UI views to notify that grafana or plugin update exists
  92. # This option does not cause any auto updates, nor send any information
  93. # only a GET request to http://grafana.net to get latest versions
  94. check_for_updates = true
  95. # Google Analytics universal tracking code, only enabled if you specify an id here
  96. google_analytics_ua_id =
  97. # Google Tag Manager ID, only enabled if you specify an id here
  98. google_tag_manager_id =
  99. #################################### Security ####################################
  100. [security]
  101. # default admin user, created on startup
  102. admin_user = admin
  103. # default admin password, can be changed before first start of grafana, or in profile settings
  104. admin_password = admin
  105. # used for signing
  106. secret_key = SW2YcwTIb9zpOOhoPsMm
  107. # Auto-login remember days
  108. login_remember_days = 7
  109. cookie_username = grafana_user
  110. cookie_remember_name = grafana_remember
  111. # disable gravatar profile images
  112. disable_gravatar = false
  113. # data source proxy whitelist (ip_or_domain:port seperated by spaces)
  114. data_source_proxy_whitelist =
  115. [snapshots]
  116. # snapshot sharing options
  117. external_enabled = true
  118. external_snapshot_url = https://snapshots-origin.raintank.io
  119. external_snapshot_name = Publish to snapshot.raintank.io
  120. #################################### Users ####################################
  121. [users]
  122. # disable user signup / registration
  123. allow_sign_up = true
  124. # Allow non admin users to create organizations
  125. allow_org_create = true
  126. # Set to true to automatically assign new users to the default organization (id 1)
  127. auto_assign_org = true
  128. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  129. auto_assign_org_role = Viewer
  130. # Require email validation before sign up completes
  131. verify_email_enabled = false
  132. # Background text for the user field on the login page
  133. login_hint = email or username
  134. # Default UI theme ("dark" or "light")
  135. default_theme = dark
  136. #################################### Anonymous Auth ##########################
  137. [auth.anonymous]
  138. # enable anonymous access
  139. enabled = false
  140. # specify organization name that should be used for unauthenticated users
  141. org_name = Main Org.
  142. # specify role for unauthenticated users
  143. org_role = Viewer
  144. #################################### Github Auth ##########################
  145. [auth.github]
  146. enabled = false
  147. allow_sign_up = false
  148. client_id = some_id
  149. client_secret = some_secret
  150. scopes = user:email
  151. auth_url = https://github.com/login/oauth/authorize
  152. token_url = https://github.com/login/oauth/access_token
  153. api_url = https://api.github.com/user
  154. team_ids =
  155. allowed_organizations =
  156. #################################### Google Auth ##########################
  157. [auth.google]
  158. enabled = false
  159. allow_sign_up = false
  160. client_id = some_client_id
  161. client_secret = some_client_secret
  162. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  163. auth_url = https://accounts.google.com/o/oauth2/auth
  164. token_url = https://accounts.google.com/o/oauth2/token
  165. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  166. allowed_domains =
  167. #################################### Basic Auth ##########################
  168. [auth.basic]
  169. enabled = true
  170. #################################### Auth Proxy ##########################
  171. [auth.proxy]
  172. enabled = false
  173. header_name = X-WEBAUTH-USER
  174. header_property = username
  175. auto_sign_up = true
  176. #################################### Auth LDAP ##########################
  177. [auth.ldap]
  178. enabled = false
  179. config_file = /etc/grafana/ldap.toml
  180. #################################### SMTP / Emailing ##########################
  181. [smtp]
  182. enabled = false
  183. host = localhost:25
  184. user =
  185. password =
  186. cert_file =
  187. key_file =
  188. skip_verify = false
  189. from_address = admin@grafana.localhost
  190. [emails]
  191. welcome_email_on_sign_up = false
  192. templates_pattern = emails/*.html
  193. #################################### Logging ##########################
  194. [log]
  195. # Either "console", "file", "syslog". Default is console and file
  196. # Use comma to separate multiple modes, e.g. "console, file"
  197. mode = console, file
  198. # Buffer length of channel, keep it as it is if you don't know what it is.
  199. buffer_len = 10000
  200. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
  201. level = Info
  202. # For "console" mode only
  203. [log.console]
  204. level =
  205. # Set formatting to "false" to disable color formatting of console logs
  206. formatting = false
  207. # For "file" mode only
  208. [log.file]
  209. level =
  210. # This enables automated log rotate(switch of following options), default is true
  211. log_rotate = true
  212. # Max line number of single file, default is 1000000
  213. max_lines = 1000000
  214. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  215. max_lines_shift = 28
  216. # Segment log daily, default is true
  217. daily_rotate = true
  218. # Expired days of log file(delete after max days), default is 7
  219. max_days = 7
  220. [log.syslog]
  221. level =
  222. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  223. network =
  224. address =
  225. # Syslog facility. user, daemon and local0 through local7 are valid.
  226. facility =
  227. # Syslog tag. By default, the process' argv[0] is used.
  228. tag =
  229. #################################### AMPQ Event Publisher ##########################
  230. [event_publisher]
  231. enabled = false
  232. rabbitmq_url = amqp://localhost/
  233. exchange = grafana_events
  234. #################################### Dashboard JSON files ##########################
  235. [dashboards.json]
  236. enabled = false
  237. path = /var/lib/grafana/dashboards
  238. #################################### Usage Quotas ##########################
  239. [quota]
  240. enabled = false
  241. #### set quotas to -1 to make unlimited. ####
  242. # limit number of users per Org.
  243. org_user = 10
  244. # limit number of dashboards per Org.
  245. org_dashboard = 100
  246. # limit number of data_sources per Org.
  247. org_data_source = 10
  248. # limit number of api_keys per Org.
  249. org_api_key = 10
  250. # limit number of orgs a user can create.
  251. user_org = 10
  252. # Global limit of users.
  253. global_user = -1
  254. # global limit of orgs.
  255. global_org = -1
  256. # global limit of dashboards
  257. global_dashboard = -1
  258. # global limit of api_keys
  259. global_api_key = -1
  260. # global limit on number of logged in users.
  261. global_session = -1
  262. #################################### Alerting ######################################
  263. # docs about alerting can be found in /docs/sources/alerting/
  264. # __.-/|
  265. # \`o_O'
  266. # =( )= +----------------------------+
  267. # U| | Alerting is still in alpha |
  268. # /\ /\ / | +----------------------------+
  269. # ) /^\) ^\/ _)\ |
  270. # ) /^\/ _) \ |
  271. # ) _ / / _) \___|_
  272. # /\ )/\/ || | )_)\___,|))
  273. # < > |(,,) )__) |
  274. # || / \)___)\
  275. # | \____( )___) )____
  276. # \______(_______;;;)__;;;)
  277. [alerting]
  278. enabled = false