defaults.ini 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. app_name = Grafana
  2. app_mode = production
  3. [server]
  4. ; protocol (http or https)
  5. protocol = http
  6. ; the ip address to bind to, empty will bind to all interfaces
  7. http_addr =
  8. ; the http port to use
  9. http_port = 3000
  10. ; The public facing domain name used to access grafana from a browser
  11. domain = localhost
  12. ; the full public facing url
  13. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  14. router_logging = false
  15. ; the path relative to the binary where the static (html/js/css) files are placed
  16. static_root_path = public
  17. ; enable gzip
  18. enable_gzip = false
  19. ; https certs & key file
  20. cert_file =
  21. cert_key =
  22. [analytics]
  23. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  24. # No ip addresses are being tracked, only simple counters to track
  25. # running instances, dashboard and error counts. It is very helpful to us.
  26. # Change this option to false to disable reporting.
  27. reporting_enabled = true
  28. ; Google Analytics universal tracking code, only enabled if you specify an id here
  29. google_analytics_ua_id =
  30. [database]
  31. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  32. type = sqlite3
  33. host = 127.0.0.1:3306
  34. name = grafana
  35. user = root
  36. password =
  37. ; For "postgres" only, either "disable", "require" or "verify-full"
  38. ssl_mode = disable
  39. ; For "sqlite3" only
  40. path = data/grafana.db
  41. [session]
  42. ; Either "memory", "file", "redis", "mysql", default is "memory"
  43. provider = file
  44. ; Provider config options
  45. ; memory: not have any config yet
  46. ; file: session file path, e.g. `data/sessions`
  47. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  48. ; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  49. provider_config = data/sessions
  50. ; Session cookie name
  51. cookie_name = grafana_sess
  52. ; If you use session in https only, default is false
  53. cookie_secure = false
  54. ; Session life time, default is 86400
  55. session_life_time = 86400
  56. [security]
  57. ; default admin user, created on startup
  58. admin_user = admin
  59. ; default admin password, can be changed before first start of grafana, or in profile settings
  60. admin_password = admin
  61. ; used for signing
  62. secret_key = SW2YcwTIb9zpOOhoPsMm
  63. ; Auto-login remember days
  64. login_remember_days = 7
  65. cookie_username = grafana_user
  66. cookie_remember_name = grafana_remember
  67. [users]
  68. ; disable user signup / registration
  69. allow_sign_up = true
  70. ; Allow non admin users to create organizations
  71. allow_org_create = true
  72. # Set to true to automatically assign new users to the default organization (id 1)
  73. auto_assign_org = true
  74. ; Default role new users will be automatically assigned (if disabled above is set to true)
  75. auto_assign_org_role = Viewer
  76. [auth.anonymous]
  77. ; enable anonymous access
  78. enabled = false
  79. ; specify organization name that should be used for unauthenticated users
  80. org_name = Main Org.
  81. ; specify role for unauthenticated users
  82. org_role = Viewer
  83. [auth.github]
  84. enabled = false
  85. client_id = some_id
  86. client_secret = some_secret
  87. scopes = user:email
  88. auth_url = https://github.com/login/oauth/authorize
  89. token_url = https://github.com/login/oauth/access_token
  90. ; uncomment bellow to only allow specific email domains
  91. ; allowed_domains = mycompany.com othercompany.com
  92. [auth.google]
  93. enabled = false
  94. client_id = some_client_id
  95. client_secret = some_client_secret
  96. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  97. auth_url = https://accounts.google.com/o/oauth2/auth
  98. token_url = https://accounts.google.com/o/oauth2/token
  99. ; uncomment bellow to only allow specific email domains
  100. ; allowed_domains = mycompany.com othercompany.com
  101. [log]
  102. root_path = data/log
  103. ; Either "console", "file", default is "console"
  104. ; Use comma to separate multiple modes, e.g. "console, file"
  105. mode = console
  106. ; Buffer length of channel, keep it as it is if you don't know what it is.
  107. buffer_len = 10000
  108. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  109. level = Info
  110. ; For "console" mode only
  111. [log.console]
  112. level =
  113. ; For "file" mode only
  114. [log.file]
  115. level =
  116. ; This enables automated log rotate(switch of following options), default is true
  117. log_rotate = true
  118. ; Max line number of single file, default is 1000000
  119. max_lines = 1000000
  120. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  121. max_lines_shift = 28
  122. ; Segment log daily, default is true
  123. daily_rotate = true
  124. ; Expired days of log file(delete after max days), default is 7
  125. max_days = 7
  126. [event_publisher]
  127. enabled = false
  128. rabbitmq_url = amqp://localhost/
  129. exchange = grafana_events