====== InfluxDB ======
===== Description =====
- Install InfluxDB (MyQNAP package) on QNAP (WHITERUN)
- Create RPi64 bucket in InfluxDB
- Install Raspberry Pi template in InfluxDB
- Install InfluxDB repository on RPi64
- Install telegraf package on RPi64 (from InfluxDB repository)
- Configure telegraf on RPi64 to connect to InfluxDB on QNAP
===== Steps =====
==== InfluxDB Raspberry Pi template installation ====
- Login to InfluxDB
- Go to **Settings / Templates**
- Paste in URL [[https://raw.githubusercontent.com/influxdata/community-templates/master/raspberry-pi/raspberry-pi-system.yml]] and **Lookup Template**
==== InfluxDB repository installation ====
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
gpg --with-fingerprint --show-keys ./influxdata-archive_compat.key
Output
pub rsa4096 2023-01-18 [SC] [expires: 2026-01-17]
9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
uid InfluxData Package Signing Key
cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
echo 'deb [arch=arm64 signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
apt-get update
[[https://repos.influxdata.com/debian/dists/bullseye/stable/|Repo]]
===== telegraf package installation =====
As root:
apt install telegraf
===== References =====
* [[https://www.influxdata.com/blog/linux-package-signing-key-rotation/|Update: Linux Package Signing Key Rotation]]