grafana.ini 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. app_name = Grafana Pro Server
  2. app_mode = dev
  3. [server]
  4. protocol = http
  5. domain = localhost
  6. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  7. http_addr =
  8. http_port = 3000
  9. ssh_port = 22
  10. route_log = true
  11. [log]
  12. root_path =
  13. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  14. ; Use comma to separate multiple modes, e.g. "console, file"
  15. mode = console
  16. ; Buffer length of channel, keep it as it is if you don't know what it is.
  17. buffer_len = 10000
  18. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  19. level = Trace
  20. ; For "console" mode only
  21. [log.console]
  22. level =
  23. ; For "file" mode only
  24. [log.file]
  25. level =
  26. ; This enables automated log rotate(switch of following options), default is true
  27. log_rotate = true
  28. ; Max line number of single file, default is 1000000
  29. max_lines = 1000000
  30. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  31. max_lines_shift = 28
  32. ; Segment log daily, default is true
  33. daily_rotate = true
  34. ; Expired days of log file(delete after max days), default is 7
  35. max_days = 7