defaults.ini 7.8 KB

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