Use zpool_influxdb instead of disk for zfs monitoring with telegraf
This commit is contained in:
parent
10c7e3dcea
commit
a186a30eb3
5 changed files with 9 additions and 4 deletions
|
@ -47,5 +47,5 @@
|
||||||
work.enable = true;
|
work.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/" "/boot" ];
|
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/boot" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,5 +50,5 @@
|
||||||
work.enable = true;
|
work.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/" "/boot" ];
|
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/boot" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,5 +112,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.msmtp.enable = false;
|
programs.msmtp.enable = false;
|
||||||
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/" "/boot/ESP0" "/boot/ESP1" "/srv/data" ];
|
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/boot/ESP0" "/boot/ESP1" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,5 +56,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/" "/boot/ESP0" "/boot/ESP1" "/srv/data" ];
|
services.telegraf.extraConfig.inputs.disk.mount_points = [ "/boot/ESP0" "/boot/ESP1" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
report_active = false;
|
report_active = false;
|
||||||
};
|
};
|
||||||
diskio = { };
|
diskio = { };
|
||||||
|
exec = {
|
||||||
|
commands = [ "${pkgs.zfs}/libexec/zfs/zpool_influxdb" ];
|
||||||
|
timeout = "5s";
|
||||||
|
data_format = "influx";
|
||||||
|
};
|
||||||
kernel = { };
|
kernel = { };
|
||||||
mem = { };
|
mem = { };
|
||||||
processes = { };
|
processes = { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue