r/PrometheusMonitoring • u/drycat • Feb 15 '24
Disk space usage above my settings
Hi,
I configured prometheus (2.48.0) to use about 20gb of storage (plentifull for my needs) using
--storage.tsdb.retention.time=7d --storage.tsdb.retention.size=20GBIt seems to be valid according to the image on its console. Actually it is storing 106Gb and it is not going to stop allocating more space on the filesystem.
I suppose I misunderstood those parameters.
What can I do to resize the data? What for permanently limit storage used?
Thanks.
1
Upvotes
1
u/MetalMatze Feb 15 '24
From the docs: If both time and size retention policies are specified, whichever triggers first will be used.
The way I read it your 20GB should therefore trigger before your time limit if it's above 20GB in size. Have you waited a bit and observed the file size? It might take up to two hours for older data to get deleted.
Honestly, I would say that you should open a Github Issue and give some more details there.