3

This may sound like a vague question so I will provide some context below. The basic question is :

What parameters describe the growth in size of a Prometheus database over time?

To tie the question down: When will the prometheus time series data base reach 1TB if I collect 10 metrics sampling them at 5 per minute?

5

Prometheus use a timeseries databases with vacuum, the documentation gives some maths to plan your disk consumption:

On average, Prometheus uses only around 1-2 bytes per sample. Thus, to plan the capacity of a Prometheus server, you can use the rough formula:

needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample

So depending on your retention configuration, 1TB could never be reach or you can keep a very long time. That said it's using prometheus local storage, using another storage system will change the maths depending on the system concerned, influxdb is one of them and has its own documentation about storage.

  • 1
    oh,now I feel like an idiot. I actually read that page, and totally missed the calculation in it - so thanks! – Bruce Becker Nov 26 '18 at 15:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.