defaults.ini 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. # Allow users to sign in using username and password
  139. allow_user_pass_login = true
  140. #################################### Anonymous Auth ##########################
  141. [auth.anonymous]
  142. # enable anonymous access
  143. enabled = false
  144. # specify organization name that should be used for unauthenticated users
  145. org_name = Main Org.
  146. # specify role for unauthenticated users
  147. org_role = Viewer
  148. #################################### Github Auth ##########################
  149. [auth.github]
  150. enabled = false
  151. allow_sign_up = false
  152. client_id = some_id
  153. client_secret = some_secret
  154. scopes = user:email
  155. auth_url = https://github.com/login/oauth/authorize
  156. token_url = https://github.com/login/oauth/access_token
  157. api_url = https://api.github.com/user
  158. team_ids =
  159. allowed_organizations =
  160. #################################### Google Auth ##########################
  161. [auth.google]
  162. enabled = false
  163. allow_sign_up = false
  164. client_id = some_client_id
  165. client_secret = some_client_secret
  166. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  167. auth_url = https://accounts.google.com/o/oauth2/auth
  168. token_url = https://accounts.google.com/o/oauth2/token
  169. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  170. allowed_domains =
  171. #################################### Basic Auth ##########################
  172. [auth.basic]
  173. enabled = true
  174. #################################### Auth Proxy ##########################
  175. [auth.proxy]
  176. enabled = false
  177. header_name = X-WEBAUTH-USER
  178. header_property = username
  179. auto_sign_up = true
  180. #################################### Auth LDAP ##########################
  181. [auth.ldap]
  182. enabled = false
  183. config_file = /etc/grafana/ldap.toml
  184. #################################### SMTP / Emailing ##########################
  185. [smtp]
  186. enabled = false
  187. host = localhost:25
  188. user =
  189. password =
  190. cert_file =
  191. key_file =
  192. skip_verify = false
  193. from_address = admin@grafana.localhost
  194. [emails]
  195. welcome_email_on_sign_up = false
  196. templates_pattern = emails/*.html
  197. #################################### Logging ##########################
  198. [log]
  199. # Either "console", "file", "syslog". Default is console and file
  200. # Use space to separate multiple modes, e.g. "console file"
  201. mode = console, file
  202. # Either "debug", "info", "warn", "error", "critical", default is "info"
  203. level = info
  204. # For "console" mode only
  205. [log.console]
  206. level =
  207. # log line format, valid options are text, console and json
  208. format = console
  209. # For "file" mode only
  210. [log.file]
  211. level =
  212. # log line format, valid options are text, console and json
  213. format = text
  214. # This enables automated log rotate(switch of following options), default is true
  215. log_rotate = true
  216. # Max line number of single file, default is 1000000
  217. max_lines = 1000000
  218. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  219. max_size_shift = 28
  220. # Segment log daily, default is true
  221. daily_rotate = true
  222. # Expired days of log file(delete after max days), default is 7
  223. max_days = 7
  224. [log.syslog]
  225. level =
  226. # log line format, valid options are text, console and json
  227. format = text
  228. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  229. network =
  230. address =
  231. # Syslog facility. user, daemon and local0 through local7 are valid.
  232. facility =
  233. # Syslog tag. By default, the process' argv[0] is used.
  234. tag =
  235. #################################### AMQP Event Publisher ##########################
  236. [event_publisher]
  237. enabled = false
  238. rabbitmq_url = amqp://localhost/
  239. exchange = grafana_events
  240. #################################### Dashboard JSON files ##########################
  241. [dashboards.json]
  242. enabled = false
  243. path = /var/lib/grafana/dashboards
  244. #################################### Usage Quotas ##########################
  245. [quota]
  246. enabled = false
  247. #### set quotas to -1 to make unlimited. ####
  248. # limit number of users per Org.
  249. org_user = 10
  250. # limit number of dashboards per Org.
  251. org_dashboard = 100
  252. # limit number of data_sources per Org.
  253. org_data_source = 10
  254. # limit number of api_keys per Org.
  255. org_api_key = 10
  256. # limit number of orgs a user can create.
  257. user_org = 10
  258. # Global limit of users.
  259. global_user = -1
  260. # global limit of orgs.
  261. global_org = -1
  262. # global limit of dashboards
  263. global_dashboard = -1
  264. # global limit of api_keys
  265. global_api_key = -1
  266. # global limit on number of logged in users.
  267. global_session = -1
  268. #################################### Internal Grafana Metrics ##########################
  269. # Metrics available at HTTP API Url /api/metrics
  270. [metrics]
  271. enabled = true
  272. interval_seconds = 60
  273. # Send internal Grafana metrics to graphite
  274. [metrics.graphite]
  275. # Enable by setting the address setting (ex localhost:2003)
  276. address =
  277. prefix = prod.grafana.%(instance_name)s.
  278. [grafana_net]
  279. url = https://grafana.net