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