I’ve been using InfluxDB 1.8.X for a few years, but it has issues. On x86 64-bit, Debian 12 virtual host, I am running into a “no space left on device” error when trying to write to .wal files. Inodes are fine, disk space is fine but the only current solution for me is to restart the service. Then it works fine for 6-24 hours and the problem happens again.
Screw influxdb 1.8. If 3.0 ever comes out, I’ll give that a try.
So Victoria Metrics, which purports to be faster and more efficient than Influx in every way, can be used as a drop-in replacement. Querying the data can be done using PromQL, which I am not too familiar with, but Grafana makes it pretty easy.
I used this guide to install VM. I changed the download URL to match the latest version of VM.
curl -L https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.102.0-rc1/victoria-metrics-linux-amd64-v1.102.0-rc1.tar.gz --output victoria-metrics-linux-amd64-v1.102.0-rc1.tar.gz
The nice part about VM is that Tasmota can integrate directly using the InfluxDB driver, just need to change the port to 8428. Also can use http post within rules like so:
rule2
on SHT3X#Temperature!=%var1% do var1 %value% endon
on SHT3X#Humidity!=%var2% do var2 %value% endon
on time#minute do WebQuery http://192.168.5.9:8428/write POST crawl_space_temperature,Parameter=Data temperature=%var1%,humidity=%var2% endon
Only downside is that I have a few queries at the farm that use Flux (to integrate energy usage) so I’ll need to figure out how to do something similar in PromQL.