LoutreOS: ajout metrics cgroup dans Telegraf

This commit is contained in:
nyanloutre 2019-11-02 13:54:34 +01:00
parent 17b70c7973
commit a9a3785e80
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,20 @@ in
processes = {};
system = {};
disk = {};
cgroup = [
{
paths = [
"/sys/fs/cgroup/memory/system.slice/*"
];
files = ["memory.*usage*" "memory.limit_in_bytes"];
}
{
paths = [
"/sys/fs/cgroup/cpu/system.slice/*"
];
files = ["cpuacct.usage" "cpu.cfs_period_us" "cpu.cfs_quota_us"];
}
];
ipmi_sensor = { path = "${pkgs.ipmitool}/bin/ipmitool"; };
smart = {
path = "${pkgs.writeShellScriptBin "smartctl" "/run/wrappers/bin/sudo ${pkgs.smartmontools}/bin/smartctl $@"}/bin/smartctl";