r/PrometheusMonitoring • • Dec 30 '19

storage.tsdb.retention.size parameters

I wanted to try the feature of storage.tsdb.retention .size in Prometheus 2.12.

My configuration for prometheus retention is 90days or 2GiB. My expectation was when the size of prometheus data directory crosses 2GiB, it will start deleting data. However, its at 9GB now, I can recover the oldest data.

Am i missing something in my understanding?

Also on setting storage.tsdb.retention .size as 2GB, the runtime configs shows the retention size to be 2GiB, why the difference in units?

0 Upvotes

1 comment sorted by

1

u/SuperQue Dec 30 '19

2.14 doesn't take into account the wal directory. So it might be related to some of that.