🇪🇸 Ir a la versión en español (Calculadora Prometheus TSDB) aquí
Size exact Prometheus TSDB NVMe/SSD disk space (Gorilla compression + WAL headroom) and RAM footprint based on active series cardinality and scrape interval, then compare estimated managed bills across Grafana Cloud and Amazon Managed Service for Prometheus (AMP).
| Scrape Interval | Samples / sec | Samples / month | TSDB Disk (+WAL) | Est. AWS AMP / mo |
|---|
1. Exact Prometheus TSDB Storage & Memory Formulas
Per official Prometheus storage specifications, persistent disk requirements scale directly with retention seconds, ingestion samples per second, and Gorilla-compressed ~1–2 bytes per sample, whereas memory depends primarily on live active head series and PromQL concurrency.
Monthly_Unique_Series = Head_Active_Series × Churn_Multiplier
Samples_Per_Sec = Head_Active_Series / Scrape_Interval_Sec
Raw_Disk_Bytes = (Retention_Days × 86400) × Samples_Per_Sec × Bytes_Per_Sample
Provisioned_Disk = Raw_Disk_Bytes × (1 + WAL_Headroom_% / 100)
Recommended_RAM ≈ (Head_Active_Series × KiB_Per_Series / 1024²) × 1.35 (Go GC & query buffer)
2. Verified Official Engineering & Pricing References
- Prometheus Official Storage Documentation: baseline formula (~1–2 bytes/sample) and 15–20% disk margin for WAL and block compaction.
- Grafana Cloud Metrics Pricing & Usage: billed by active series (10k free tier; Pro baseline ~$19/mo + volume-tiered active series pricing).
- Amazon Managed Service for Prometheus (AMP) Pricing: metered per ingested sample (~$0.90 per 10M samples in tier 1 plus storage and PromQL query sample fees).
3. Prometheus Sizing & Cardinality FAQ
Why does cutting scrape_interval from 60s to 5s multiply disk and AWS AMP bills?
Moving from 60s to 5s generates 12× more samples per second for the exact same active series count. That multiplies both TSDB disk footprint and sample-metered cloud ingestion charges like AWS AMP by 12×, whereas active-series platforms like Grafana Cloud mainly track unique label combinations.
How much RAM does Prometheus need per 100,000 active time series?
In steady production clusters, expect roughly 2 KiB to 8 KiB per active series covering head block chunks, symbol tables, inverted label indexes, and Go runtime garbage collection overhead — typically 0.5 GiB to 1.2 GiB of TSDB memory per 100k series before adding heavy dashboard query bursts.
Why should you leave a 15–20% disk buffer on Prometheus volumes?
Prometheus writes incoming samples to the Write-Ahead Log (WAL) before cutting 2-hour persistent blocks and merges older blocks during compaction; running out of disk triggers ingestion failures or restarts during pod deploy spikes.
Informational disclaimer: 100% browser-side capacity estimate; workloads with high-cardinality regex PromQL queries or dense native histograms may require extra RAM headroom.
Size underlying cluster nodes in our Kubernetes Pod Bin-Packing Calculator, prevent OOMKills via our Container Memory & OOMKill Calculator, or browse Syncroma Tools.