Devops News and Headlines
  • All Technology
  • AI
  • Autonomy
  • B2B Growth
  • Big Data
  • BioTech
  • ClimateTech
  • Consumer Tech
  • Cybersecurity
  • DevOps
  • Digital Marketing
  • Ecommerce
  • EdTech
  • Enterprise
  • FinTech
  • GovTech
  • Hardware
  • HealthTech
  • HRTech
  • LegalTech
  • Nanotech
  • PropTech
  • Quantum
  • Robotics
  • SaaS
  • SpaceTech
AllNewsDealsSocialBlogsVideosPodcastsDigests
HomeDevopsNewsGenerating Metrics From Traces with Cardinality Control: A Closer Look at HyperLogLog in Tempo
Generating Metrics From Traces with Cardinality Control: A Closer Look at HyperLogLog in Tempo
DevOps

Generating Metrics From Traces with Cardinality Control: A Closer Look at HyperLogLog in Tempo

•March 4, 2026
Grafana Labs – Blog
Grafana Labs – Blog•Mar 4, 2026

Why It Matters

Accurate cardinality estimation prevents runaway metric costs and ensures observability pipelines remain scalable. The feature gives both self‑hosted and Grafana Cloud users actionable insight into trace‑derived metric usage.

Key Takeaways

  • •Metrics-generator creates span-based RED metrics from traces.
  • •Cardinality explosion can inflate metrics costs dramatically.
  • •HyperLogLog reduces memory per tenant to ~5KB.
  • •Sliding window sketches enable stale series subtraction.
  • •New Grafana Cloud metrics forecast series demand before collection.

Pulse Analysis

Observability teams have long relied on RED metrics—request rate, error rate, and duration—to gauge service health, while tracing provides deep, request‑level context. Tempo’s metrics‑generator bridges the gap by converting spans into these key performance indicators, allowing organizations that instrument only with tracing to gain immediate metric visibility. The convenience comes with a hidden risk: each unique combination of span attributes spawns a new metric series, and uncontrolled growth can quickly inflate storage bills and strain monitoring back‑ends.

To tame this problem, Tempo 2.10 adopts HyperLogLog, a probabilistic data structure that estimates cardinality with constant memory. By deploying a sliding window of 5‑minute sketches, Tempo can both count new series and effectively discard stale ones without the overhead of storing every identifier. The chosen precision of 10 consumes roughly 1 KB per sketch, delivering a 3 % standard error—far lower than the megabytes required for exact counting. Real‑world deployments on Grafana Cloud confirm the estimator stays within this error band, offering a lightweight yet reliable view of active series.

The practical payoff is immediate. New metrics such as `tempo_metrics_generator_registry_active_series_demand_estimate` surface the gap between configured limits and actual demand, enabling operators to adjust quotas or apply collector filters before costs spiral. Whether running Tempo on‑prem or via Grafana Cloud, teams now have a clear signal to balance trace‑derived metric richness against budget constraints, reinforcing a cost‑effective, scalable observability strategy.

Generating metrics from traces with cardinality control: A closer look at HyperLogLog in Tempo

Read Original Article

Comments

Want to join the conversation?

Loading comments...

Top Publishers

  • The Verge AI

    The Verge AI

    21 followers

  • TechCrunch AI

    TechCrunch AI

    19 followers

  • Crunchbase News AI

    Crunchbase News AI

    15 followers

  • TechRadar

    TechRadar

    15 followers

  • Hacker News

    Hacker News

    13 followers

See More →

Top Creators

  • Ryan Allis

    Ryan Allis

    194 followers

  • Elon Musk

    Elon Musk

    78 followers

  • Sam Altman

    Sam Altman

    68 followers

  • Mark Cuban

    Mark Cuban

    56 followers

  • Jack Dorsey

    Jack Dorsey

    39 followers

See More →

Top Companies

  • SaasRise

    SaasRise

    196 followers

  • Anthropic

    Anthropic

    39 followers

  • OpenAI

    OpenAI

    21 followers

  • Hugging Face

    Hugging Face

    15 followers

  • xAI

    xAI

    12 followers

See More →

Top Investors

  • Andreessen Horowitz

    Andreessen Horowitz

    16 followers

  • Y Combinator

    Y Combinator

    15 followers

  • Sequoia Capital

    Sequoia Capital

    12 followers

  • General Catalyst

    General Catalyst

    8 followers

  • A16Z Crypto

    A16Z Crypto

    5 followers

See More →
NewsDealsSocialBlogsVideosPodcasts