chia-monitor icon indicating copy to clipboard operation
chia-monitor copied to clipboard

Reduce history.sqlite size

Open bhorvitz opened this issue 3 years ago • 2 comments

Hi @philippnormann! I've been using your monitor for a long time and love it. Thank you.

I'm wondering, is there a way to limit the growth on the history.sqlite data? That file is just past 3 gig and it seems like I probably don't need all that since I don't display anything in my dashboard longer than 7 days. Thanks.

bhorvitz avatar Nov 19 '21 14:11 bhorvitz

So, to follow up (and for anyone else reading this), I realize it doesn't actually matter. Any historical data I may want is sitting in Prometheus, so I just blew it away and started over with no impact at all.

bhorvitz avatar Nov 22 '21 23:11 bhorvitz

automatic clean up of db would be really nice. In config.json could be a settings something like delete_data_after_seconds.

stefan-lange avatar Mar 12 '22 16:03 stefan-lange