Heya! So I have been using InfluxDB since the first time I started to use Home Assistant. Since then I have been doing a lot to my HA. And I guess there’s a lot of stuff in that database I could remove.
Is there a guide out there explaining how I easily delete parts I no longer need? Like sensor-data that I have removed etc…
Check my image, lets say I dont longer use that “kontroll_ikea_1_power” and want to remove all that stored backup. How do I do that? I see that in the next field there’s “free internal storage” ? I guess I should do something with that?
Thanks a lot!
Frankly I dont know yet how to do this… I mean I dont want everything to be stored… but to use the Include will make me use ALOT of entities right? That list would still be long.
And to use exclude is also hard since that list is also long.
And sure I use an SSD with 200 or so GB but restoring that will take like 2 days since restoring my 1 or so GB today takes 40 min.
Any tips?
Put up with backup issues to to large DB size. Or,
Put a bit of effort in to using include/exclude. Clever use of the domain and/or entity_glob options can reduce the amount of work required. There are about 200 entries in my InfluxDB include list. I use Watchman semi-regularly to make sure lists like this do not contain defunct entries.
Yeha I feel maybe I should point out what entities I do want to monitor long term like energy, temperature etc with that include-feature and leave the rest. If I try to use the exclude I belive that list will be enormous.
But if I now change the influx config to only have a few enteties as include, will the database remove the rest? Or do I need to like set the database to 1 MB in order for it to clean it first? Would be nice though to keep those enteties I do want… but I guess thats a complex operation in InfluxDB?
working with the lastest version of InfluxDB using HassOS. I find no way to enter /execute the commands mentioned above. I tried it using api_version 1 and 2, but no success.
I get messages informing me, that the respective keywords (like SHOW or USE) do not exist.
I have no idea how to proceed in my task of cleaning up the dataases.
Go to the InfluxDB add-on. Open the web-ui. Click the “Explore” option in InfluxDB’s left menu. There is a text box where you can submit queries there.