Prometheus & OpenTelemetry Active Time-Series Cardinality & TSDB Storage Calculator

Compute Prometheus sample ingestion rate (samples/sec) and TSDB disk footprint from cardinality.

TSDB Disk Storage Required 64.8 GB
Ingestion Rate (Samples per Second) 16,666.667 samples/s
Billion Samples Ingested per 30 Days 43.2 B samples
Estimated TSDB Working RAM (~3 KB/series) 0.75 GB RAM
Inputs
Try:
series
Total unique active time series (metric name × label value combinations).
sec
Prometheus scrape interval in seconds (typically 15s, 30s, or 60s).
days
Local or object-storage TSDB retention window in days.
bytes/sample
Average bytes per compressed sample (Prometheus TSDB averages 1.3–1.7 bytes/sample).
Results & Graph
TSDB Disk Storage Required
64.8 GB
Ingestion Rate (Samples per Second)
16,666.667 samples/s
Billion Samples Ingested per 30 Days
43.2 B samples
Estimated TSDB Working RAM (~3 KB/series)
0.75 GB RAM

TSDB Disk Storage Required

Graph 1 • How the inputs feed Prometheus Cardinality & Storage
Prometheus & OpenTelemetry Active Time-Series Cardinality & TSDB Storage Calculator • Custom Domain Schematic (AI, Cloud & Distributed Systems) activeTiscrapeInOut Active Time Series Cardinality: 250.0k series • Scrape Interval Seconds: 15 sec TSDB DISK STORAGE REQUIRED 64.8 GB • Ingestion Rate (Sample: 16,666.667 sampl • Billion Samples Ingest: 43.2 B samples Eq: SamplesPerSec = ActiveTimeSeries
Graph 2 • TSDB Disk Storage Required as Active Time Series Cardinality changes (40% to 160% of current)
0 GB 57.02 GB 114.0 GB 25.92 100.0k 38.88 150.0k 51.84 200.0k 64.80 250.0k 77.76 300.0k 90.72 350.0k 103.7 400.0k
Graph 3 • Active Time Series Cardinality and Scrape Interval Seconds together Compares TSDB Disk Storage Required when Scrape Interval Seconds is shifted +25% (solid) vs. −25% (dashed).
0 GB 61.78 GB 123.6 GB --- Scrape Interval Seconds @ 75% 36.29 -30% 44.06 -15% 51.84 +0% 59.62 +15% 67.39 +30%
Summary: 250,000 active series scraped every 15s generates 16,667 samples/sec (43.2B samples/mo) and requires 64.8 GB of TSDB storage over 30 days.
Summary: 250,000 active series scraped every 15s generates 16,667 samples/sec (43.2B samples/mo) and requires 64.8 GB of TSDB storage over 30 days.
Interactive chart & math engine powered by CalculatorGraph

Formula: Prometheus Cardinality & Storage Formula

SamplesPerSec = ActiveTimeSeries / ScrapeIntervalSec
DiskGB = (SamplesPerSec × 86400 × RetentionDays × BytesPerSample) / 10⁹
SamplesPerSec = ActiveTimeSeries / ScrapeIntervalSec; Disk_GB = (SamplesPerSec × 86400 × RetentionDays × BytesPerSample) / 10⁹
  • activeTimeSeriesCardinality: Total unique active time series (metric name × label value combinations).
  • scrapeIntervalSeconds: Prometheus scrape interval in seconds (typically 15s, 30s, or 60s).
  • retentionDays: Local or object-storage TSDB retention window in days.
  • bytesPerCompressedSample: Average bytes per compressed sample (Prometheus TSDB averages 1.3–1.7 bytes/sample).

Frequently Asked Questions

Why does memory not change when I lengthen the scrape interval?

The tool estimates RAM at about 3 KB per active series, so only the series count moves it. Going from 15 to 60 seconds cut disk from 64.8 GB to 16.2 GB but left RAM at 0.75 GB. That mirrors real servers, where memory goes mostly on the index and head chunks for each series, not on the number of samples received.

Is the GB figure decimal or binary?

Decimal. The engine divides total bytes by a billion, so 64.8 GB means 64.8 billion bytes. Operating system tools often report binary gibibytes, which are about 7% larger per unit, so the same data will appear as a slightly smaller number in a df output. The difference is small next to the uncertainty in bytes per sample.

How do I turn targets and labels into an active series count?

Multiply targets by series per target for each scrape job, then add the jobs together. Labels and histogram buckets are already part of the per target count once you measure it. The tool takes the final total only. If Prometheus is already running, read the head block series count it reports instead of estimating.

What bytes per sample should I enter if I have no data yet?

Start with the default 1.5 and run a second pass at 2 to see the spread. The page quotes 1.3 to 1.7 as typical. At 2 bytes the default goes from 64.8 GB to 86.4 GB. Once you have a few days of blocks, divide their size by the samples they contain and use that measured value.

Why is the billion samples line fixed at 30 days?

It is a monthly ingestion rate, which is what most hosted services bill against. Changing retention to 90 days changes the disk figure but leaves 43.2 B samples on the default, because the flow of data per month has not changed. Multiply it by the number of months you keep if you want the total stored.

Does series churn make the estimate too low?

It can. The calculation uses the active series count at one moment. When pods restart or label values change, old series stop and new ones begin, and each still occupies index space for the whole retention window. Busy Kubernetes clusters with frequent deploys can hold many more distinct series per block than the active count suggests.

Can I model different scrape intervals for different jobs?

Not in one run, since there is a single interval field. Run the tool once per group, for example critical services at 15 seconds and infrastructure at 60 seconds, with each group's own series count. Add the disk and sample figures together. Add the RAM figures too, since every series costs memory regardless of interval.

What happens if I enter a scrape interval of zero?

The page refuses it and asks you to check the inputs. Scrape interval, retention and bytes per sample all have to be above zero, and the series count has to be at least 1, because the formula divides by the interval and multiplies by the other two. Enter the interval actually set in your scrape configuration, usually 15, 30 or 60 seconds.

How much spare disk should I leave above the result?

The calculator does not say, because it depends on index size, churn and compaction in your setup. The figure covers compressed samples only, so the write ahead log, block indexes and room for compaction come on top. Measure a running server over a full retention window and set the volume size from what you see.

Does lowering retention reduce memory usage?

Not in this calculator, and only slightly in practice. RAM here depends solely on active series. A real server keeps recent data in memory and reads older blocks from disk as needed, so shorter retention mainly frees disk. To lower memory, reduce cardinality by dropping unused labels or metrics at scrape time.

Is 3 KB per series a reliable memory figure?

It is a rule of thumb, not a measurement. Real memory per series depends on label length, how many samples sit in the head block, query load and the Prometheus version. Use the RAM line to compare scenarios against each other, then check the process memory of a running server under real queries before you size an instance, since heavy dashboards can add a lot on top.

A quarter of a million series at 15 seconds: 64.8 GB for 30 days

The default describes a fairly typical mid-sized Prometheus server: 250,000 active time series, scraped every 15 seconds, kept for 30 days, at 1.5 bytes per compressed sample. The answer is 64.8 GB of TSDB disk.

Three numbers lead there. Dividing 250,000 series by a 15 second interval gives 16,666.667 samples per second. Multiplying by the seconds in a day and by 30 days gives 43.2 billion samples, which the page shows as 43.2 B. At 1.5 bytes each, that is 64.8 billion bytes. The engine divides by a billion, not by the binary gibibyte, so the GB here is a decimal gigabyte.

The fourth line, 0.75 GB of working RAM, comes from a separate rule of thumb: about 3 KB of memory for each active series. It scales with cardinality alone. Scrape interval and retention do not change it in this tool, which is why it stays at 0.75 GB however long you keep the data.

Treat the disk number as the size of the compressed sample data. It is a floor for capacity planning rather than the amount of disk to buy, for reasons covered further down.

Getting the active series count right before anything else

Everything in the result is proportional to the first input, so a wrong series count makes every line wrong by the same factor. The tool takes one total. It does not ask for targets, metrics and labels separately, so you need to do that multiplication yourself.

The usual way is targets times series per target. A node exporter, a Kubernetes pod with an application client library and a database exporter each expose very different numbers of series, so add them up by job rather than assuming one average. Labels multiply on top: a request counter labelled by method, status code and route has one series for every combination that actually occurs, not one series per metric name.

Histograms are the common surprise. Each histogram produces a series per bucket, plus a count and a sum, and then that whole set is repeated for every label combination. A single latency histogram on a busy service can outweigh dozens of plain counters.

If you already run Prometheus, you do not need to estimate. The server reports the number of series in its head block, and that figure is the one to type in. Add headroom for growth and for the churn described below.

Lower and higher cardinality presets

The page's lower scenario drops to 150,000 series and the higher one rises to 375,000, with everything else held at the default. Disk goes to 38.88 GB and 97.2 GB respectively, ingestion to 10,000 and 25,000 samples per second, and RAM to 0.45 GB and 1.125 GB.

Every one of those figures moves in exact proportion. Fifty percent more series gives fifty percent more disk, samples and memory. That linearity is what makes the tool easy to use for budgeting: work out one environment, then scale it.

It also shows where to look for savings. Cutting the series count by a fifth saves a fifth of the disk, exactly as cutting retention by a fifth would, but it also saves a fifth of the memory, which shorter retention does not. In most real systems, the cheapest place to save is cardinality, by dropping labels that nobody queries.

Scrape interval halves or doubles the disk, not the memory

Changing the scrape interval from 15 to 30 seconds halves the samples. I ran it: about 8.3 thousand samples per second, 21.6 B samples a month and 32.4 GB of disk. At 60 seconds it halves again to 16.2 GB. The RAM line stays at 0.75 GB in both runs because the number of series has not changed.

That reflects how Prometheus works. Memory is mostly spent holding the index and recent chunks for each series, whether that series receives a sample every second or every minute. A longer interval is a good way to cut disk and ingestion load, but it does little for a server that is running out of memory. For that you need fewer series.

There is a cost to stretching the interval. Queries using rate over short windows need several samples in the window to work, so an interval of 60 seconds forces longer query ranges, and short spikes can fall between scrapes. Many teams keep a short interval for a few critical jobs and a longer one for everything else, which this tool can model by running each group separately and adding the results.

The interval has to be above zero. An entry of 0 returns a check inputs message rather than a result, and so does a retention or bytes per sample of zero, or fewer than one series. There is no hidden floor, so every result you see uses exactly the numbers you typed.

Retention and bytes per sample

Retention is a straight multiplier on disk. Halving it to 15 days gives 32.4 GB. The ingestion and samples lines stay the same, because they describe the flow of data, not how much of it you keep. The billion samples line is always for a 30 day window, whatever retention you enter, so read it as a monthly rate.

Bytes per sample is the input people tend to leave alone, and it moves the answer as much as any other. Prometheus compresses timestamps and values together, and the page quotes 1.3 to 1.7 bytes per sample as the typical range. Raising the default to 2 bytes takes disk from 64.8 GB to 86.4 GB.

Compression depends on the data. Counters that rise steadily and gauges that rarely change compress very well. Values that jump around randomly, or timestamps that drift because scrapes are irregular, compress worse. If you have a running server, divide the size of its persisted blocks by the number of samples they hold to get your own figure, and use that instead of the default.

Disk the 64.8 GB figure does not include

The formula counts compressed samples only. A real data directory holds more. Each block carries an index of series and label values, which can be a substantial part of the total when cardinality is high and series are short lived.

Prometheus also keeps a write ahead log for the head block so it can recover after a crash, and it needs free space during compaction, when smaller blocks are merged into larger ones and both copies exist for a while. Running a disk close to full is a common cause of failed compactions.

Then there is churn. When pods are replaced, or a label value changes, old series stop and new ones start. Within one retention window the total number of series that existed can be much larger than the active count at any instant, and each of them costs index space even after it goes quiet. A deployment pipeline that rolls pods several times a day can multiply the series count across a month.

So size the disk well above the figure shown. How much above depends on churn and index size in your environment, which this calculator does not model.

A worked sizing pass for a growing cluster

Suppose the default is today's production server and the team expects cardinality to grow by half over the next year as more services are instrumented. Running the higher preset of 375,000 series at the same 15 second interval and 30 day retention gives 97.2 GB of sample data, 25,000 samples per second and 1.125 GB of estimated RAM.

Now suppose the same team agrees to move infrastructure exporters to a 30 second interval while keeping application metrics at 15 seconds. If half the series move, run the tool twice with half of the 375,000 series in each run, once at each interval, and add the results. The disk figure lands between the two single interval runs, and the RAM total is unchanged, because the number of series is the same.

Finally, decide on retention. If dashboards and alerts never look back more than two weeks, and longer history goes to a remote store, local retention can drop to 15 days and halve the local disk again. Each of those choices is visible in the result straight away, which is the point of running the numbers before buying hardware or committing to a managed plan.

Write down the inputs you settled on next to the result. When actual usage drifts from the plan, the first question is always which input was wrong, and that is much easier to answer if the assumptions were recorded.

Managed services and remote storage

Hosted Prometheus compatible services and long term stores such as Thanos, Cortex or Mimir usually bill on active series, samples ingested, or both. The ingestion line here, 16,666.667 samples per second on the default, and the monthly sample count are the figures you need for those price sheets.

The disk figure is less useful in that case. Object storage back ends downsample and compact differently, may keep replicas, and charge for storage at their own rate. Use the sample and series counts to compare vendors, and their own calculators for the storage side.

OpenTelemetry metrics sent through a collector end up as the same kind of time series once they reach a Prometheus compatible back end. The same arithmetic applies, but check how your exporter maps resource attributes to labels, because carrying every attribute across can raise cardinality sharply.