sample.ini 7.7 KB

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