observability
Tempo Tracing Storage Calculator
Calculate Grafana Tempo or Jaeger distributed tracing storage requirements. Size disk, S3, and RAM based on spans/sec, bytes per span, sampling rate, and retention.
Related tool
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Tracing Storage with Grafana Tempo
Distributed tracing captures the full execution path of requests across microservices. Without sampling, trace storage grows proportionally to request rate × span size.
Storage Formula
raw_gb_per_day = spans_per_sec × bytes_per_span × 86400 / 1e9
compressed_gb_per_day = raw_gb_per_day / 4 (Tempo Parquet compression)
total_storage = compressed_gb_per_day × retention_daysTempo Architecture with S3
OTel Collector → Tempo Distributor → Ingester (RAM/WAL) → S3 blocks
→ Querier (on demand)With S3 backend, Tempo's local disk only holds the WAL (~5 min buffer). All historical data lives in object storage.
Sampling Strategy
# OpenTelemetry Collector — tail-based sampling
processors:
tail_sampling:
policies:
- name: errors-policy
type: status_code
status_code: {status_codes: [ERROR]}
- name: slow-policy
type: latency
latency: {threshold_ms: 500}
- name: base-rate
type: probabilistic
probabilistic: {sampling_percentage: 5}Backend Comparison
| Tempo + S3 | Jaeger + ES | |
|---|---|---|
| Compression | ~4× | ~1.5× |
| Storage cost | Low | High |
| Query speed | Good | Fast |
| Operational cost | Low | High |
Worked example: Tempo Storage
What the calculator returns for its default inputs — change any value in the form above to recalculate.
| Input | Value |
|---|---|
| Spans per Second | 1000 |
| Average Span Size | 500 bytes — typical (+ service/resource attrs) |
| Sampling Rate | 100 % |
| Retention Period | 7 days |
| Storage Backend | Tempo + S3 (Hetzner Object Storage) — recommended |
| Result | Value |
|---|---|
| Total storage needed | 76 GB |
| Tempo RAM | 2.0 GB |
| Raw traces per day | 43.20 GB |
| Compressed per day | 10.80 GB |
| Local disk (WAL) | 1 GB |
| Effective spans/sec | 1,000 |
| Hetzner S3 monthly cost | €0.90 |
How the calculation works
- ›Effective spans/s = spans per second × sampling rate.
- ›Raw traces per day = effective spans × bytes per span × 86,400.
- ›Compressed per day = raw ÷ 4 for Tempo (Parquet blocks) or ÷ 1.5 for Jaeger on Elasticsearch.
- ›Total storage = compressed per day × retention days. With Tempo on S3, local disk only buffers ~1 hour of blocks.
- ›Ingester RAM ≈ 5 minutes of traces in memory (minimum 1 GB) + 1 GB for the querier.
Sampling is the biggest lever: tail sampling in the OpenTelemetry Collector keeps errors and slow traces while dropping most healthy ones.
Key Terms
Full glossary →Prometheus
An open-source metrics and alerting system. Prometheus scrapes metrics from Kubernetes components and applications, stores them in a time-series database (TSDB), and evaluates alert rules.
Loki
A horizontally scalable log aggregation system by Grafana Labs. Unlike Elasticsearch, Loki only indexes metadata labels, storing log content as compressed chunks in object storage.
Frequently Asked Questions
Should I use Grafana Tempo or Jaeger?
Tempo is recommended for new deployments. It uses S3-compatible object storage natively, compresses traces ~4× with Parquet, and integrates directly with Grafana. Jaeger uses Elasticsearch which is much more expensive — 5–10× more storage and RAM for equivalent trace volume.
What sampling rate should I use?
For high-traffic services (>1000 req/sec): 1–10% head-based sampling with tail-based sampling to capture all errors and slow requests. For low-traffic services: 100%. Without sampling at 1000 spans/sec and 500 bytes/span, you generate 43 GB/day of raw traces.
What's the difference between head-based and tail-based sampling?
Head-based sampling decides at the start of a request (fast, cheap, but misses errors). Tail-based sampling buffers the full trace and decides at the end — capturing all errors/slow traces regardless of base rate. Grafana Tempo supports tail-based sampling via the Tempo Operator.
How does Tempo compress trace data?
Tempo stores traces as Parquet files with snappy compression, achieving ~4× compression on typical trace data. A 1 KB span compresses to ~250 bytes. Jaeger with Elasticsearch achieves only ~1.5× compression due to the inverted index overhead.
Related Tools
Observability Sizing
Size your Prometheus, Grafana, Loki, and Alertmanager stack. Calculate RAM, disk, and CPU requirements based on your cluster size and retention period.
Prometheus Storage
Calculate Prometheus disk and RAM requirements based on active time series count, scrape interval, and retention period. Includes TSDB head, WAL, and chunk cache sizing.
Loki Storage
Calculate Grafana Loki disk, S3 storage, and RAM requirements based on pod count, log rate, compression ratio, and retention period.
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.