defaults.ini 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. ##################### Grafana Configuration Defaults #####################
  2. #
  3. # Do not modify this file in grafana installs
  4. #
  5. app_mode = production
  6. #################################### Paths ####################################
  7. [paths]
  8. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  9. #
  10. data = data
  11. #
  12. # Directory where grafana can store logs
  13. #
  14. logs = data/log
  15. #################################### Server ####################################
  16. [server]
  17. # Protocol (http or https)
  18. protocol = http
  19. # The ip address to bind to, empty will bind to all interfaces
  20. http_addr =
  21. # The http port to use
  22. http_port = 3000
  23. # The public facing domain name used to access grafana from a browser
  24. domain = localhost
  25. # Redirect to correct domain if host header does not match domain
  26. # Prevents DNS rebinding attacks
  27. enforce_domain = false
  28. # The full public facing url
  29. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  30. # Log web requests
  31. router_logging = false
  32. # the path relative working path
  33. static_root_path = public
  34. # enable gzip
  35. enable_gzip = false
  36. # https certs & key file
  37. cert_file =
  38. cert_key =
  39. #################################### Database ####################################
  40. [database]
  41. # Either "mysql", "postgres" or "sqlite3", it's your choice
  42. type = sqlite3
  43. host = 127.0.0.1:3306
  44. name = grafana
  45. user = root
  46. password =
  47. # For "postgres" only, either "disable", "require" or "verify-full"
  48. ssl_mode = disable
  49. # For "sqlite3" only, path relative to data_path setting
  50. path = grafana.db
  51. #################################### Session ####################################
  52. [session]
  53. # Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
  54. provider = file
  55. # Provider config options
  56. # memory: not have any config yet
  57. # file: session dir path, is relative to grafana data_path
  58. # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
  59. # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
  60. # mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
  61. provider_config = sessions
  62. # Session cookie name
  63. cookie_name = grafana_sess
  64. # If you use session in https only, default is false
  65. cookie_secure = false
  66. # Session life time, default is 86400
  67. session_life_time = 86400
  68. #################################### Analytics ####################################
  69. [analytics]
  70. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  71. # No ip addresses are being tracked, only simple counters to track
  72. # running instances, dashboard and error counts. It is very helpful to us.
  73. # Change this option to false to disable reporting.
  74. reporting_enabled = true
  75. # Google Analytics universal tracking code, only enabled if you specify an id here
  76. google_analytics_ua_id =
  77. # Google Tag Manager ID, only enabled if you specify an id here
  78. google_tag_manager_id =
  79. #################################### Security ####################################
  80. [security]
  81. # default admin user, created on startup
  82. admin_user = admin
  83. # default admin password, can be changed before first start of grafana, or in profile settings
  84. admin_password = admin
  85. # used for signing
  86. secret_key = SW2YcwTIb9zpOOhoPsMm
  87. # Auto-login remember days
  88. login_remember_days = 7
  89. cookie_username = grafana_user
  90. cookie_remember_name = grafana_remember
  91. # disable gravatar profile images
  92. disable_gravatar = false
  93. #################################### Users ####################################
  94. [users]
  95. # disable user signup / registration
  96. allow_sign_up = true
  97. # Allow non admin users to create organizations
  98. allow_org_create = true
  99. # Set to true to automatically assign new users to the default organization (id 1)
  100. auto_assign_org = true
  101. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  102. auto_assign_org_role = Viewer
  103. #################################### Anonymous Auth ##########################
  104. [auth.anonymous]
  105. # enable anonymous access
  106. enabled = false
  107. # specify organization name that should be used for unauthenticated users
  108. org_name = Main Org.
  109. # specify role for unauthenticated users
  110. org_role = Viewer
  111. #################################### Github Auth ##########################
  112. [auth.github]
  113. enabled = false
  114. allow_sign_up = false
  115. client_id = some_id
  116. client_secret = some_secret
  117. scopes = user:email
  118. auth_url = https://github.com/login/oauth/authorize
  119. token_url = https://github.com/login/oauth/access_token
  120. api_url = https://api.github.com/user
  121. team_ids =
  122. allowed_organizations =
  123. #################################### Google Auth ##########################
  124. [auth.google]
  125. enabled = false
  126. allow_sign_up = false
  127. client_id = some_client_id
  128. client_secret = some_client_secret
  129. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  130. auth_url = https://accounts.google.com/o/oauth2/auth
  131. token_url = https://accounts.google.com/o/oauth2/token
  132. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  133. allowed_domains =
  134. #################################### Basic Auth ##########################
  135. [auth.basic]
  136. enabled = true
  137. #################################### Auth Proxy ##########################
  138. [auth.proxy]
  139. enabled = false
  140. header_name = X-WEBAUTH-USER
  141. header_property = username
  142. auto_sign_up = true
  143. #################################### Auth LDAP ##########################
  144. [auth.ldap]
  145. enabled = false
  146. config_file = /etc/grafana/ldap.toml
  147. #################################### SMTP / Emailing ##########################
  148. [smtp]
  149. enabled = false
  150. host = localhost:25
  151. user =
  152. password =
  153. cert_file =
  154. key_file =
  155. skip_verify = false
  156. from_address = admin@grafana.localhost
  157. [emails]
  158. welcome_email_on_sign_up = false
  159. templates_pattern = emails/*.html
  160. #################################### Logging ##########################
  161. [log]
  162. # Either "console", "file", default is "console"
  163. # Use comma to separate multiple modes, e.g. "console, file"
  164. mode = console, file
  165. # Buffer length of channel, keep it as it is if you don't know what it is.
  166. buffer_len = 10000
  167. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  168. level = Info
  169. # For "console" mode only
  170. [log.console]
  171. level =
  172. # For "file" mode only
  173. [log.file]
  174. level =
  175. # This enables automated log rotate(switch of following options), default is true
  176. log_rotate = true
  177. # Max line number of single file, default is 1000000
  178. max_lines = 1000000
  179. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  180. max_lines_shift = 28
  181. # Segment log daily, default is true
  182. daily_rotate = true
  183. # Expired days of log file(delete after max days), default is 7
  184. max_days = 7
  185. #################################### AMPQ Event Publisher ##########################
  186. [event_publisher]
  187. enabled = false
  188. rabbitmq_url = amqp://localhost/
  189. exchange = grafana_events
  190. #################################### Dashboard JSON files ##########################
  191. [dashboards.json]
  192. enabled = false
  193. path = /var/lib/grafana/dashboards