I was writing a query that requires the sum of a field since midnight through to now, and there isn’t an obvious function for it. This is a quick fix for queries that require a today() timeframe via the truncate method. Obviously, you can adjust the units to make it even more useful. See the… Continue reading Flux Since Today Query
Month: February 2021
Upgrade InfluxDB 1.8 to 2.x on Ubuntu 20.04
This procedure is based on InfluxDB installs from the official InfluxDB repo apt-based installs with all files at the default locations. Make sure you backup all your data. All of it. Seriously. Also, AFTER backing up, take a snapshot if you are running in a virtual environment. It took me more than 12 attempts on… Continue reading Upgrade InfluxDB 1.8 to 2.x on Ubuntu 20.04