mschlenstedt / LoxBerry-Plugin-Stats4Lox-NG

Apache License 2.0
6 stars 3 forks source link

Delete Statistics Entries #141

Open sunpower10 opened 7 months ago

sunpower10 commented 7 months ago

It is not possible to delete statistics entries that have been imported proviously.

Also cannot use this label again after using it once, always amends label to xxx_2.

sunpower10 commented 7 months ago

I can delete statistics using DROP MEASUREMENT "Measurement Name", but then I cannot import again using the same Measurement Name (it somehow still exists).

mschlenstedt commented 7 months ago

Most likely it still exists in our internal database.

sunpower10 commented 7 months ago

Thanks for your answer, is there a way to delete this?

mschlenstedt commented 7 months ago

Well, without any manual edits in your measurements, it is no problem to reimport the measurements again and again.

Since you have now done things manually, I don't know the state of your system. You can try it - without any garantee. You can find our "database" in JSON format in /opt/loxberry/config/plugins/stats4lox/stats.json

Delete the measurements and make sure it's a valid JSON after your edits. Than try again.