defaults.ini 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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", "memcache", 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. # memcache: 127.0.0.1:11211
  63. provider_config = sessions
  64. # Session cookie name
  65. cookie_name = grafana_sess
  66. # If you use session in https only, default is false
  67. cookie_secure = false
  68. # Session life time, default is 86400
  69. session_life_time = 86400
  70. gc_interval_time = 86400
  71. #################################### Analytics ####################################
  72. [analytics]
  73. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  74. # No ip addresses are being tracked, only simple counters to track
  75. # running instances, dashboard and error counts. It is very helpful to us.
  76. # Change this option to false to disable reporting.
  77. reporting_enabled = true
  78. # Google Analytics universal tracking code, only enabled if you specify an id here
  79. google_analytics_ua_id =
  80. # Google Tag Manager ID, only enabled if you specify an id here
  81. google_tag_manager_id =
  82. #################################### Security ####################################
  83. [security]
  84. # default admin user, created on startup
  85. admin_user = admin
  86. # default admin password, can be changed before first start of grafana, or in profile settings
  87. admin_password = admin
  88. # used for signing
  89. secret_key = SW2YcwTIb9zpOOhoPsMm
  90. # Auto-login remember days
  91. login_remember_days = 7
  92. cookie_username = grafana_user
  93. cookie_remember_name = grafana_remember
  94. # disable gravatar profile images
  95. disable_gravatar = false
  96. # data source proxy whitelist (ip_or_domain:port seperated by spaces)
  97. data_source_proxy_whitelist =
  98. #################################### Users ####################################
  99. [users]
  100. # disable user signup / registration
  101. allow_sign_up = true
  102. # Allow non admin users to create organizations
  103. allow_org_create = true
  104. # Set to true to automatically assign new users to the default organization (id 1)
  105. auto_assign_org = true
  106. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  107. auto_assign_org_role = Viewer
  108. # Require email validation before sign up completes
  109. verify_email_enabled = false
  110. #################################### Anonymous Auth ##########################
  111. [auth.anonymous]
  112. # enable anonymous access
  113. enabled = false
  114. # specify organization name that should be used for unauthenticated users
  115. org_name = Main Org.
  116. # specify role for unauthenticated users
  117. org_role = Viewer
  118. #################################### Github Auth ##########################
  119. [auth.github]
  120. enabled = false
  121. allow_sign_up = false
  122. client_id = some_id
  123. client_secret = some_secret
  124. scopes = user:email
  125. auth_url = https://github.com/login/oauth/authorize
  126. token_url = https://github.com/login/oauth/access_token
  127. api_url = https://api.github.com/user
  128. team_ids =
  129. allowed_organizations =
  130. #################################### Google Auth ##########################
  131. [auth.google]
  132. enabled = false
  133. allow_sign_up = false
  134. client_id = some_client_id
  135. client_secret = some_client_secret
  136. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  137. auth_url = https://accounts.google.com/o/oauth2/auth
  138. token_url = https://accounts.google.com/o/oauth2/token
  139. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  140. allowed_domains =
  141. #################################### Basic Auth ##########################
  142. [auth.basic]
  143. enabled = true
  144. #################################### Auth Proxy ##########################
  145. [auth.proxy]
  146. enabled = false
  147. header_name = X-WEBAUTH-USER
  148. header_property = username
  149. auto_sign_up = true
  150. #################################### Auth LDAP ##########################
  151. [auth.ldap]
  152. enabled = false
  153. config_file = /etc/grafana/ldap.toml
  154. #################################### SMTP / Emailing ##########################
  155. [smtp]
  156. enabled = false
  157. host = localhost:25
  158. user =
  159. password =
  160. cert_file =
  161. key_file =
  162. skip_verify = false
  163. from_address = admin@grafana.localhost
  164. [emails]
  165. welcome_email_on_sign_up = false
  166. templates_pattern = emails/*.html
  167. #################################### Logging ##########################
  168. [log]
  169. # Either "console", "file", default is "console"
  170. # Use comma to separate multiple modes, e.g. "console, file"
  171. mode = console, file
  172. # Buffer length of channel, keep it as it is if you don't know what it is.
  173. buffer_len = 10000
  174. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  175. level = Info
  176. # For "console" mode only
  177. [log.console]
  178. level =
  179. # Set formatting to "false" to disable color formatting of console logs
  180. formatting = true
  181. # For "file" mode only
  182. [log.file]
  183. level =
  184. # This enables automated log rotate(switch of following options), default is true
  185. log_rotate = true
  186. # Max line number of single file, default is 1000000
  187. max_lines = 1000000
  188. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  189. max_lines_shift = 28
  190. # Segment log daily, default is true
  191. daily_rotate = true
  192. # Expired days of log file(delete after max days), default is 7
  193. max_days = 7
  194. #################################### AMPQ Event Publisher ##########################
  195. [event_publisher]
  196. enabled = false
  197. rabbitmq_url = amqp://localhost/
  198. exchange = grafana_events
  199. #################################### Dashboard JSON files ##########################
  200. [dashboards.json]
  201. enabled = false
  202. path = /var/lib/grafana/dashboards
  203. #################################### Usage Quotas ##########################
  204. [quota]
  205. enabled = false
  206. #### set quotas to -1 to make unlimited. ####
  207. # limit number of users per Org.
  208. org_user = 10
  209. # limit number of dashboards per Org.
  210. org_dashboard = 100
  211. # limit number of data_sources per Org.
  212. org_data_source = 10
  213. # limit number of api_keys per Org.
  214. org_api_key = 10
  215. # limit number of orgs a user can create.
  216. user_org = 10
  217. # Global limit of users.
  218. global_user = -1
  219. # global limit of orgs.
  220. global_org = -1
  221. # global limit of dashboards
  222. global_dashboard = -1
  223. # global limit of api_keys
  224. global_api_key = -1
  225. # global limit on number of logged in users.
  226. global_session = -1