You should install this inside a dataset so it won't get blown away by any TrueNAS updates.
zfs create tank/telegraf
git clone https://github.com/samuelkadolph/truenas-telegraf /mnt/tank/telegraf
/mnt/tank/telegraf/install
Confirmed to work with:
- FreeNAS-11.3-U4.1
- TrueNAS-12.0-RELEASE
- TrueNAS-12.0-U1.1
- TrueNAS-12.0-U3
- TrueNAS-13.0-U5.3
Main configuration file lives at /mnt/tank/telegraf/telegraf.conf
.
Additional configuration files live in /mnt/tank/telegraf/telegraf.d
.
I've included a small script that will correctly report CPU temperatures. Add this to your config.
[[inputs.exec]]
commands = ["/mnt/tank/telegraf/cputemp"]
data_format = "influx"