stockholm/makefu/2configs/logging/central-stats-client.nix

61 lines
1.3 KiB
Nix
Raw Normal View History

2017-01-09 15:02:02 +00:00
{pkgs, config, ...}:
{
2017-01-09 15:03:36 +00:00
services.collectd = {
2017-01-09 15:02:02 +00:00
enable = true;
autoLoadPlugin = true;
extraConfig = ''
2017-01-09 15:03:36 +00:00
Hostname ${config.krebs.build.host.name}
LoadPlugin load
LoadPlugin disk
LoadPlugin memory
LoadPlugin df
Interval 30.0
2017-01-09 15:02:02 +00:00
2017-01-09 15:03:36 +00:00
LoadPlugin interface
<Plugin "interface">
Interface "*Link"
Interface "lo"
Interface "vboxnet*"
Interface "virbr*"
IgnoreSelected true
</Plugin>
2017-01-09 15:02:02 +00:00
2017-01-09 15:03:36 +00:00
LoadPlugin df
2017-01-09 15:02:02 +00: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 15:03:36 +00:00
IgnoreSelected true
2017-01-09 15:02:02 +00:00
</Plugin>
2017-01-09 15:03:36 +00:00
LoadPlugin cpu
<Plugin cpu>
ReportByCpu true
ReportByState true
ValuesPercentage true
</Plugin>
2017-01-09 15:02:02 +00:00
LoadPlugin network
<Plugin "network">
Server "${config.makefu.stats-server}" "25826"
</Plugin>
'';
};
}