Here is my setup for pz2w, hope it can be used. Had it running on a pzw but was too slow. runs alongside grafana and bluetooth.
pi@raspberrypi:~ $ influx --version
InfluxDB shell version: 1.8.10
install influx
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y
curl https://repos.influxdata.com/influxdb.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdb-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/influxdb-archive-keyring.gpg] https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt update && sudo apt install influxdb -y
sudo systemctl unmask influxdb
sudo systemctl enable influxdb
sudo systemctl start influxdb
sudo systemctl status influxdb