Advertisement
Guest User

Untitled

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