2017-01-09 16:02:02 +01:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
{
|
2017-01-09 16:03:36 +01:00
|
|
|
services.collectd = {
|
2017-01-09 16:02:02 +01:00
|
|
|
enable = true;
|
|
|
|
autoLoadPlugin = true;
|
|
|
|
extraConfig = ''
|
2017-01-09 16:03:36 +01:00
|
|
|
Hostname ${config.krebs.build.host.name}
|
|
|
|
LoadPlugin load
|
|
|
|
LoadPlugin disk
|
|
|
|
LoadPlugin memory
|
|
|
|
LoadPlugin df
|
|
|
|
Interval 30.0
|
2017-01-09 16:02:02 +01:00
|
|
|
|
2017-01-09 16:03:36 +01:00
|
|
|
LoadPlugin interface
|
|
|
|
<Plugin "interface">
|
|
|
|
Interface "*Link"
|
|
|
|
Interface "lo"
|
|
|
|
Interface "vboxnet*"
|
|
|
|
Interface "virbr*"
|
|
|
|
IgnoreSelected true
|
|
|
|
</Plugin>
|
2017-01-09 16:02:02 +01:00
|
|
|
|
2017-01-09 16:03:36 +01:00
|
|
|
LoadPlugin df
|
2017-01-09 16:02:02 +01:00
|
|
|
<Plugin "df">
|
|
|
|
MountPoint "/nix/store"
|
|
|
|
# MountPoint "/run*"
|
|
|
|
# MountPoint "/sys*"
|
|
|
|
# MountPoint "/dev"
|
|
|
|
# MountPoint "/dev/shm"
|
|
|
|
# MountPoint "/tmp"
|
|
|
|
FSType "tmpfs"
|
|
|
|
FSType "binfmt_misc"
|
|
|
|
FSType "debugfs"
|
|
|
|
FSType "mqueue"
|
|
|
|
FSType "hugetlbfs"
|
|
|
|
FSType "systemd-1"
|
|
|
|
FSType "cgroup"
|
|
|
|
FSType "securityfs"
|
|
|
|
FSType "ramfs"
|
|
|
|
FSType "proc"
|
|
|
|
FSType "devpts"
|
|
|
|
FSType "devtmpfs"
|
|
|
|
MountPoint "/var/lib/docker/devicemapper"
|
2017-01-09 16:03:36 +01:00
|
|
|
IgnoreSelected true
|
2017-01-09 16:02:02 +01:00
|
|
|
</Plugin>
|
|
|
|
|
2017-01-09 16:03:36 +01:00
|
|
|
LoadPlugin cpu
|
|
|
|
<Plugin cpu>
|
|
|
|
ReportByCpu true
|
|
|
|
ReportByState true
|
|
|
|
ValuesPercentage true
|
|
|
|
</Plugin>
|
2017-01-09 16:02:02 +01:00
|
|
|
|
|
|
|
LoadPlugin network
|
|
|
|
<Plugin "network">
|
|
|
|
Server "${config.makefu.stats-server}" "25826"
|
|
|
|
</Plugin>
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|