defaults.ini 5.0 KB

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