Scans all active targets on your Prometheus server to count the number of samples available to determine the minimum size of your storage according to your retention.
The formula is based on the offcial documentation. I set the sample size to 2 bytes (pessimistic approach)
Installation
pip install -r requirements.txt
Usage
python3 main.py <prom_url> <retention>
Example
python3 main.py http://localhost:9090 30d