Advertisement
Guest User

default.ini

a guest
Jun 28th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.42 KB | None | 0 0
  1. ##################### Grafana Configuration Defaults #####################
  2. #
  3. # Do not modify this file in grafana installs
  4. #
  5.  
  6. # possible values : production, development
  7. app_mode = production
  8.  
  9. #################################### Paths ####################################
  10. [paths]
  11. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  12. #
  13. data = data
  14. #
  15. # Directory where grafana can store logs
  16. #
  17. logs = data/log
  18. #
  19. # Directory where grafana will automatically scan and look for plugins
  20. #
  21. plugins = data/plugins
  22.  
  23. #################################### Server ####################################
  24. [server]
  25. # Protocol (http or https)
  26. protocol = http
  27.  
  28. # The ip address to bind to, empty will bind to all interfaces
  29. http_addr =
  30.  
  31. # The http port to use
  32. http_port = 3000
  33.  
  34. # The public facing domain name used to access grafana from a browser
  35. domain = localhost
  36.  
  37. # Redirect to correct domain if host header does not match domain
  38. # Prevents DNS rebinding attacks
  39. enforce_domain = false
  40.  
  41. # The full public facing url
  42. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  43.  
  44. # Log web requests
  45. router_logging = false
  46.  
  47. # the path relative working path
  48. static_root_path = public
  49.  
  50. # enable gzip
  51. enable_gzip = false
  52.  
  53. # https certs & key file
  54. cert_file =
  55. cert_key =
  56.  
  57. #################################### Database ####################################
  58. [database]
  59. # Either "mysql", "postgres" or "sqlite3", it's your choice
  60. type = sqlite3
  61. host = 127.0.0.1:3306
  62. name = grafana
  63. user = root
  64. password =
  65.  
  66. # For "postgres", use either "disable", "require" or "verify-full"
  67. # For "mysql", use either "true", "false", or "skip-verify".
  68. ssl_mode = disable
  69.  
  70. ca_cert_path =
  71. client_key_path =
  72. client_cert_path =
  73. server_cert_name =
  74.  
  75. # For "sqlite3" only, path relative to data_path setting
  76. path = grafana.db
  77.  
  78. #################################### Session ####################################
  79. [session]
  80. # Either "memory", "file", "redis", "mysql", "postgres", "memcache", default is "file"
  81. provider = file
  82.  
  83. # Provider config options
  84. # memory: not have any config yet
  85. # file: session dir path, is relative to grafana data_path
  86. # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
  87. # postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
  88. # mysql: go-sql-driver/mysql dsn config string, examples:
  89. # `user:password@tcp(127.0.0.1:3306)/database_name`
  90. # `user:password@unix(/var/run/mysqld/mysqld.sock)/database_name`
  91. # memcache: 127.0.0.1:11211
  92.  
  93.  
  94. provider_config = sessions
  95.  
  96. # Session cookie name
  97. cookie_name = grafana_sess
  98.  
  99. # If you use session in https only, default is false
  100. cookie_secure = false
  101.  
  102. # Session life time, default is 86400
  103. session_life_time = 86400
  104. gc_interval_time = 86400
  105.  
  106. #################################### Analytics ####################################
  107. [analytics]
  108. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  109. # No ip addresses are being tracked, only simple counters to track
  110. # running instances, dashboard and error counts. It is very helpful to us.
  111. # Change this option to false to disable reporting.
  112. reporting_enabled = true
  113.  
  114. # Set to false to disable all checks to https://grafana.net
  115. # for new vesions (grafana itself and plugins), check is used
  116. # in some UI views to notify that grafana or plugin update exists
  117. # This option does not cause any auto updates, nor send any information
  118. # only a GET request to http://grafana.net to get latest versions
  119. check_for_updates = true
  120.  
  121. # Google Analytics universal tracking code, only enabled if you specify an id here
  122. google_analytics_ua_id =
  123.  
  124. # Google Tag Manager ID, only enabled if you specify an id here
  125. google_tag_manager_id =
  126.  
  127. #################################### Security ####################################
  128. [security]
  129. # default admin user, created on startup
  130. admin_user = admin
  131.  
  132. # default admin password, can be changed before first start of grafana, or in profile settings
  133. admin_password = admin
  134.  
  135. # used for signing
  136. secret_key = SW2YcwTIb9zpOOhoPsMm
  137.  
  138. # Auto-login remember days
  139. login_remember_days = 7
  140. cookie_username = grafana_user
  141. cookie_remember_name = grafana_remember
  142.  
  143. # disable gravatar profile images
  144. disable_gravatar = false
  145.  
  146. # data source proxy whitelist (ip_or_domain:port seperated by spaces)
  147. data_source_proxy_whitelist =
  148.  
  149. [snapshots]
  150. # snapshot sharing options
  151. external_enabled = true
  152. external_snapshot_url = https://snapshots-origin.raintank.io
  153. external_snapshot_name = Publish to snapshot.raintank.io
  154.  
  155. #################################### Users ####################################
  156. [users]
  157. # disable user signup / registration
  158. allow_sign_up = true
  159.  
  160. # Allow non admin users to create organizations
  161. allow_org_create = true
  162.  
  163. # Set to true to automatically assign new users to the default organization (id 1)
  164. auto_assign_org = true
  165.  
  166. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  167. auto_assign_org_role = Viewer
  168.  
  169. # Require email validation before sign up completes
  170. verify_email_enabled = false
  171.  
  172. # Background text for the user field on the login page
  173. login_hint = email or username
  174.  
  175. #################################### Anonymous Auth ##########################
  176. [auth.anonymous]
  177. # enable anonymous access
  178. enabled = false
  179.  
  180. # specify organization name that should be used for unauthenticated users
  181. org_name = Main Org.
  182.  
  183. # specify role for unauthenticated users
  184. org_role = Viewer
  185.  
  186. #################################### Github Auth ##########################
  187. [auth.github]
  188. enabled = false
  189. allow_sign_up = false
  190. client_id = some_id
  191. client_secret = some_secret
  192. scopes = user:email
  193. auth_url = https://github.com/login/oauth/authorize
  194. token_url = https://github.com/login/oauth/access_token
  195. api_url = https://api.github.com/user
  196. team_ids =
  197. allowed_organizations =
  198.  
  199. #################################### Google Auth ##########################
  200. [auth.google]
  201. enabled = false
  202. allow_sign_up = false
  203. client_id = some_client_id
  204. client_secret = some_client_secret
  205. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  206. auth_url = https://accounts.google.com/o/oauth2/auth
  207. token_url = https://accounts.google.com/o/oauth2/token
  208. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  209. allowed_domains =
  210.  
  211. #################################### Basic Auth ##########################
  212. [auth.basic]
  213. enabled = true
  214.  
  215. #################################### Auth Proxy ##########################
  216. [auth.proxy]
  217. enabled = false
  218. header_name = X-WEBAUTH-USER
  219. header_property = username
  220. auto_sign_up = true
  221.  
  222. #################################### Auth LDAP ##########################
  223. [auth.ldap]
  224. enabled = false
  225. config_file = /etc/grafana/ldap.toml
  226.  
  227. #################################### SMTP / Emailing ##########################
  228. [smtp]
  229. enabled = false
  230. host = localhost:25
  231. user =
  232. password =
  233. cert_file =
  234. key_file =
  235. skip_verify = false
  236. from_address = admin@grafana.localhost
  237.  
  238. [emails]
  239. welcome_email_on_sign_up = false
  240. templates_pattern = emails/*.html
  241.  
  242. #################################### Logging ##########################
  243. [log]
  244. # Either "console", "file", "syslog". Default is console and file
  245. # Use comma to separate multiple modes, e.g. "console, file"
  246. mode = console, file
  247.  
  248. # Buffer length of channel, keep it as it is if you don't know what it is.
  249. buffer_len = 10000
  250.  
  251. # Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
  252. level = Info
  253.  
  254. # For "console" mode only
  255. [log.console]
  256. level =
  257. # Set formatting to "false" to disable color formatting of console logs
  258. formatting = false
  259.  
  260. # For "file" mode only
  261. [log.file]
  262. level =
  263. # This enables automated log rotate(switch of following options), default is true
  264. log_rotate = true
  265.  
  266. # Max line number of single file, default is 1000000
  267. max_lines = 1000000
  268.  
  269. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  270. max_lines_shift = 28
  271.  
  272. # Segment log daily, default is true
  273. daily_rotate = true
  274.  
  275. # Expired days of log file(delete after max days), default is 7
  276. max_days = 7
  277.  
  278. [log.syslog]
  279. level =
  280. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  281. network =
  282. address =
  283.  
  284. # Syslog facility. user, daemon and local0 through local7 are valid.
  285. facility =
  286.  
  287. # Syslog tag. By default, the process' argv[0] is used.
  288. tag =
  289.  
  290. #################################### AMPQ Event Publisher ##########################
  291. [event_publisher]
  292. enabled = false
  293. rabbitmq_url = amqp://localhost/
  294. exchange = grafana_events
  295.  
  296. #################################### Dashboard JSON files ##########################
  297. [dashboards.json]
  298. enabled = false
  299. path = /var/lib/grafana/dashboards
  300.  
  301. #################################### Usage Quotas ##########################
  302. [quota]
  303. enabled = false
  304.  
  305. #### set quotas to -1 to make unlimited. ####
  306. # limit number of users per Org.
  307. org_user = 10
  308.  
  309. # limit number of dashboards per Org.
  310. org_dashboard = 100
  311.  
  312. # limit number of data_sources per Org.
  313. org_data_source = 10
  314.  
  315. # limit number of api_keys per Org.
  316. org_api_key = 10
  317.  
  318. # limit number of orgs a user can create.
  319. user_org = 10
  320.  
  321. # Global limit of users.
  322. global_user = -1
  323.  
  324. # global limit of orgs.
  325. global_org = -1
  326.  
  327. # global limit of dashboards
  328. global_dashboard = -1
  329.  
  330. # global limit of api_keys
  331. global_api_key = -1
  332.  
  333. # global limit on number of logged in users.
  334. global_session = -1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement