defaults.ini 9.9 KB

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