Member-only story
Monitoring your QNAP NAS with Telegraf, Influxdb, and Grafana.
In 2020, I migrated from my 10 year old QNAP TS-419+ to a new QNAP TS-473. After the migration I endeavored to get better visibility into all the components in my network. I setup the Telegraf, Influxdb, Grafana (or TIG) stack for metrics and Graylog for centralized logging.
I’ve setup telegraf on the QNAP NAS and now I can see the TS-473 host data along with other hosts I’m monitoring.
Compiling
I’ve had the opportunity to compile telegraf on an embedded platform before when I built telegraf for the Asus RT-AC68U.
I started with installing go. This assumes that you have installed Entware and have enabled ssh for shell access.
# opkg install go
Installing go (1.15.5-1) to root...
Downloading http://bin.entware.net/x64-k3.2/go_1.15.5-1_x64-3.2.ipk
Configuring go.
Please add /opt/bin/go/bin to your PATH
Please set GOROOT=/opt/bin/go environment variable to use GO compiler
Next install git and the git helper for https
# opkg install git
Installing git (2.27.0-1) to root...
Downloading http://bin.entware.net/x64-k3.2/git_2.27.0-1_x64-3.2.ipk
Installing libopenssl (1.1.1h-1) to root...
Downloading http://bin.entware.net/x64-k3.2/libopenssl_1.1.1h-1_x64-3.2.ipk
Configuring libopenssl…