sample.ini 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Sample grafana config
  2. # You only need to specify overrides here
  3. # Defaults are in the /opt/grafana/current/conf/defaults.ini file
  4. # This file is never ovewritten when upgrading grafana via deb or rpm package
  5. app_mode = production
  6. [server]
  7. ; protocol (http or https)
  8. protocol = http
  9. ; the ip address to bind to, empty will bind to all interfaces
  10. http_addr =
  11. ; the http port to use
  12. http_port = 3000
  13. ; The public facing domain name used to access grafana from a browser
  14. domain = localhost
  15. ; the full public facing url
  16. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  17. router_logging = false
  18. ; the path relative to grafana process working directory
  19. static_root_path = public
  20. enable_gzip = false
  21. [database]
  22. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  23. type = sqlite3
  24. host = 127.0.0.1:3306
  25. name = grafana
  26. user = root
  27. password =
  28. ; For "postgres" only, either "disable", "require" or "verify-full"
  29. ssl_mode = disable
  30. ; For "sqlite3" only
  31. path = /opt/grafana/data/grafana.db
  32. [log]
  33. level = Trace
  34. mode = console, file
  35. root_path = /var/log/grafana