Created
October 25, 2016 15:48
-
-
Save anthony-kam/e4af0201b34b72a9d3737355e59a51d4 to your computer and use it in GitHub Desktop.
Collectd.conf with pretty generic metrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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