Prometheus & TSDB Errors // SeriesStore Lab
Classic Histogram Bucket Cardinality Bloat
A single Envoy, Istio, or NGINX HTTP latency histogram with 20 le buckets multiplies every route, status code, and pod into 22x active time series.
Measured TSDB & Cardinality Telemetry
If 50 microservices each expose 25 API endpoints across 100 pods with 20 histogram buckets, classic Prometheus histograms generate 2.5 million active series from latency metrics alone—pushing Prometheus past 16 GB RAM and Grafana Cloud over $20,000/mo.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| 20-Bucket Classic Histogram | 22x series multiplier | Inflates active series and IndexDB lookup cost |
| Pruned / Relabeled Buckets | 60 - 75% series cut | Drop redundant intermediate le buckets |
| VictoriaMetrics Storage Efficiency | 0.4 - 0.9 B/sample | ZSTD compresses sparse zero-delta buckets near 0.2 B |
Step-by-Step Diagnostic & Config Remediation
- Audit _bucket series share: Run seriesCountByMetricName in vmui and check if *_bucket dominates top 10.
- Drop unused high-cardinality labels: Strip path query strings, raw instance ports, or redundant le buckets via metric_relabel_configs.
- Switch to VictoriaMetrics + InterServer: Compress residual sparse bucket series with Gorilla+ZSTD on $6/TB Storage Slices.
# Drop redundant mid-range le buckets if only SLO thresholds (0.1s, 0.5s, 1s, 5s) are alerted:
metric_relabel_configs:
- source_labels: [__name__, le]
regex: "http_request_duration_seconds_bucket;(0\.005|0\.025|0\.075|0\.25|0\.75)"
action: drop
Diagnostic FAQ
Why does ZSTD compress histogram buckets so well in VictoriaMetrics?
Unused histogram buckets stay constant (zero delta) across scrapes, allowing delta-of-delta + ZSTD to pack them to fractions of a byte.
Can VictoriaMetrics also ingest OpenTelemetry exponential histograms?
Yes. VictoriaMetrics supports compact VictoriaMetrics histograms and OpenTelemetry OTLP histogram ingestion natively.