LoutreOS: ajout metrics cgroup dans Telegraf
This commit is contained in:
parent
17b70c7973
commit
a9a3785e80
@ -32,6 +32,20 @@ in
|
|||||||
processes = {};
|
processes = {};
|
||||||
system = {};
|
system = {};
|
||||||
disk = {};
|
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"; };
|
ipmi_sensor = { path = "${pkgs.ipmitool}/bin/ipmitool"; };
|
||||||
smart = {
|
smart = {
|
||||||
path = "${pkgs.writeShellScriptBin "smartctl" "/run/wrappers/bin/sudo ${pkgs.smartmontools}/bin/smartctl $@"}/bin/smartctl";
|
path = "${pkgs.writeShellScriptBin "smartctl" "/run/wrappers/bin/sudo ${pkgs.smartmontools}/bin/smartctl $@"}/bin/smartctl";
|
||||||
|
Loading…
Reference in New Issue
Block a user