sample.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Sample grafana config for deb & rpm packages
  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. ; https certs & key file
  22. cert_file =
  23. cert_key =
  24. [analytics]
  25. # Server reporting, sends usage counters to stats.grafana.org (https).
  26. # No ip addresses are being tracked, only simple counters to track
  27. # running instances, dashboard and error counts. It is very helpful to us.
  28. # Change this option to false to disable reporting.
  29. reporting_enabled = true
  30. ; Google Analytics universal tracking code, only enabled if you specify an id here
  31. google_analytics_ua_id =
  32. [database]
  33. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  34. type = sqlite3
  35. host = 127.0.0.1:3306
  36. name = grafana
  37. user = root
  38. password =
  39. ; For "postgres" only, either "disable", "require" or "verify-full"
  40. ssl_mode = disable
  41. ; For "sqlite3" only
  42. path = /opt/grafana/data/grafana.db
  43. [session]
  44. ; Either "memory", "file", "redis", "mysql", default is "memory"
  45. provider = file
  46. ; Provider config options
  47. ; memory: not have any config yet
  48. ; file: session file path, e.g. `data/sessions`
  49. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
  50. ; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
  51. provider_config = /opt/grafana/data/sessions
  52. ; Session cookie name
  53. cookie_name = grafana_sess
  54. ; If you use session in https only, default is false
  55. cookie_secure = false
  56. ; Session life time, default is 86400
  57. session_life_time = 86400
  58. [security]
  59. ; default admin user, created on startup
  60. admin_user = admin
  61. ; default admin password, can be changed before first start of grafana, or in profile settings
  62. admin_password = admin
  63. ; used for signing
  64. secret_key = SW2YcwTIb9zpOOhoPsMm
  65. ; Auto-login remember days
  66. login_remember_days = 7
  67. cookie_username = grafana_user
  68. cookie_remember_name = grafana_remember
  69. [users]
  70. ; disable user signup / registration
  71. allow_sign_up = true
  72. ; Allow non admin users to create organizations
  73. allow_org_create = true
  74. # Set to true to automatically assign new users to the default organization (id 1)
  75. auto_assign_org = true
  76. ; Default role new users will be automatically assigned (if disabled above is set to true)
  77. auto_assign_org_role = Viewer
  78. [auth.anonymous]
  79. ; enable anonymous access
  80. enabled = false
  81. ; specify organization name that should be used for unauthenticated users
  82. org_name = Main org.
  83. ; specify role for unauthenticated users
  84. org_role = Viewer
  85. [log]
  86. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  87. level = Info
  88. mode = console, file
  89. root_path = /var/log/grafana