collectd.conf.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Hostname "{{ HOST_NAME }}"
  2. FQDNLookup false
  3. Interval {{ COLLECT_INTERVAL | default("10") }}
  4. Timeout 2
  5. ReadThreads 5
  6. LoadPlugin cpu
  7. LoadPlugin df
  8. LoadPlugin load
  9. LoadPlugin memory
  10. LoadPlugin disk
  11. LoadPlugin interface
  12. LoadPlugin uptime
  13. LoadPlugin swap
  14. LoadPlugin write_graphite
  15. <Plugin cpu>
  16. ReportByCpu {{ REPORT_BY_CPU | default("false") }}
  17. </Plugin>
  18. <Plugin df>
  19. # expose host's mounts into container using -v /:/host:ro (location inside container does not matter much)
  20. # ignore rootfs; else, the root file-system would appear twice, causing
  21. # one of the updates to fail and spam the log
  22. FSType rootfs
  23. # ignore the usual virtual / temporary file-systems
  24. FSType sysfs
  25. FSType proc
  26. FSType devtmpfs
  27. FSType devpts
  28. FSType tmpfs
  29. FSType fusectl
  30. FSType cgroup
  31. FSType overlay
  32. FSType debugfs
  33. FSType pstore
  34. FSType securityfs
  35. FSType hugetlbfs
  36. FSType squashfs
  37. FSType mqueue
  38. MountPoint "/etc/resolv.conf"
  39. MountPoint "/etc/hostname"
  40. MountPoint "/etc/hosts"
  41. IgnoreSelected true
  42. ReportByDevice false
  43. ReportReserved true
  44. ReportInodes true
  45. </Plugin>
  46. <Plugin "disk">
  47. Disk "/^[hs]d[a-z]/"
  48. IgnoreSelected false
  49. </Plugin>
  50. <Plugin interface>
  51. Interface "lo"
  52. Interface "/^veth.*/"
  53. Interface "/^docker.*/"
  54. IgnoreSelected true
  55. </Plugin>
  56. <Plugin "write_graphite">
  57. <Carbon>
  58. Host "{{ GRAPHITE_HOST }}"
  59. Port "{{ GRAPHITE_PORT | default("2003") }}"
  60. Prefix "{{ GRAPHITE_PREFIX | default("collectd.") }}"
  61. EscapeCharacter "_"
  62. SeparateInstances true
  63. StoreRates true
  64. AlwaysAppendDS false
  65. </Carbon>
  66. </Plugin>