SRE Lab · observability simulator · updated
Cardinality & Sampling Cost Explorer
See how one high-cardinality metric label blows up active series, how head vs. tail sampling changes outage visibility, and how a 3-pillar stack compares against wide structured events. Pricing uses illustrative cloud unit rates so you can compare relative shape.
Metric labels (multiply series!)worst case
Active metric series-
3-pillar est. / mo-
Wide-event est. / mo-
Errors captured-
Monthly spend breakdown (illustrative unit model)
Unit model: $8 / 1k active metric series, $0.55 / GB logs, $0.50 / GB traces (3-pillar) vs. $0.40 / GB columnar wide events + slim infra metrics. Relative shape matters more than vendor list prices.
Matching guardrails config
Why this breaks across hundreds of teams
Cardinality multiplies silently: Prometheus and managed metric stores bill per unique label combination. Every scraped pod is its own target with its own
instance label, so the fleet total is series per pod times pods. Adding user_id or trace_id to a metric turns 100 series per pod into millions and trips sample_limit, which Prometheus checks on each scrape of one pod and enforces by failing that whole scrape. The multipliers here are a worst case: they assume every label value shows up with every other. Keep IDs in wide events or structured metadata instead.Sampling trades cost against outage visibility: Head sampling at 10% or 1% decides at the root span, before any downstream call has failed, so it throws away 90% or 99% of error traces. Tail sampling or dynamic wide-event sampling decides after the trace is complete and keeps ~100% of errors and slow p99s while thinning routine 200 OK traffic. Put a head sampler in front of the tail sampler (hybrid) and the tail stage only sees what the head stage let through: 25% head means at most 25% of errors.
Catch cardinality bombs in PR review before deploy: Telemetry PRs is an open-source static GitHub Action (
telemetry-prs/telemetry-prs@v0.2.0, block-on: high) that flags unbounded metric labels like user_id, trace_id, and req.url across OpenTelemetry and prom-client right in your pull request diff, 100% inside CI with no SaaS upload or LLM keys.