Skip to content

Instantly share code, notes, and snippets.

@ralphotowo
Forked from anthony-kam/collectd.conf
Created April 17, 2017 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphotowo/71dd5a8cbd0504aa042c0218f4d92725 to your computer and use it in GitHub Desktop.
Save ralphotowo/71dd5a8cbd0504aa042c0218f4d92725 to your computer and use it in GitHub Desktop.
Collectd.conf with pretty generic metrics
### collectd.conf config file (Collectd 5.5)
FQDNLookup true
Interval 300
Timeout 2
ReadThreads 5
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin exec
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin nginx
LoadPlugin processes
LoadPlugin sensors
LoadPlugin swap
LoadPlugin uptime
LoadPlugin users
<Plugin df>
# expose host's mounts into container using -v /:/host:ro (location inside container does not matter much)
# ignore rootfs; else, the root file-system would appear twice, causing
# one of the updates to fail and spam the log
## Seems to be fixed with collectd 5.5+
## FSType rootfs
# ignore the usual virtual / temporary file-systems
FSType sysfs
FSType proc
FSType devtmpfs
FSType devpts
FSType tmpfs
FSType fusectl
FSType cgroup
FSType overlay
FSType debugfs
FSType pstore
FSType securityfs
FSType hugetlbfs
FSType squashfs
FSType mqueue
IgnoreSelected true
ReportByDevice false
#ReportInodes true # Default false
ValuesAbsolute true
ValuesPercentage true
</Plugin>
<Plugin "disk">
#Disk "/^[hsv]d[a-z]/"
IgnoreSelected false
</Plugin>
<Plugin cpu>
ValuesPercentage true
</Plugin>
<Plugin memory>
ValuesPercentage true
</Plugin>
<Plugin exec>
# userid plugin-executable plugin-args
#Exec "munin" "/usr/share/doc/collectd-core/examples/exec-munin.px"
Exec "backup" "/etc/collectd/smartctl_homemade.sh"
</Plugin>
<Plugin interface>
Interface "lo"
Interface "/^veth.*/"
Interface "/^docker.*/"
IgnoreSelected true
</Plugin>
<Plugin "network">
Server "influxdb_host_to_replace" "influxdb_port_to_replace_8096_for_instance"
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment