Skip to main content
⎈K8sCalc

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.

✓Content reviewed Jul 18, 2026

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_days

Tempo 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

yaml
# 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 + S3Jaeger + ES
Compression~4×~1.5×
Storage costLowHigh
Query speedGoodFast
Operational costLowHigh

Worked example: Tempo Storage

What the calculator returns for its default inputs — change any value in the form above to recalculate.

InputValue
Spans per Second1000
Average Span Size500 bytes — typical (+ service/resource attrs)
Sampling Rate100 %
Retention Period7 days
Storage BackendTempo + S3 (Hetzner Object Storage) — recommended
ResultValue
Total storage needed76 GB
Tempo RAM2.0 GB
Raw traces per day43.20 GB
Compressed per day10.80 GB
Local disk (WAL)1 GB
Effective spans/sec1,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.

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

Related Generators

Related Guides