Home / Companies / Grafana Labs / Blog / Post Details
Content Deep Dive

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

Blog post from Grafana Labs

Post Details
Company
Date Published
Author
Carles Garcia
Word Count
1,186
Company Posts That Month
21
Language
English
Hacker News Points
-
Post removed?
No
Summary

Tempo, an open-source distributed tracing backend, has introduced a powerful feature in its 2.10 release that addresses the challenge of generating metrics directly from traces, specifically focusing on managing cardinality. Through the optional metrics-generator component, Tempo can produce RED metrics from traces and push them to Mimir, filling the gap for applications that use tracing without metrics. However, this capability risks causing a cardinality explosion—an overwhelming number of unique metric series that can increase costs. To tackle this, Tempo employs HyperLogLog, a probabilistic data structure that efficiently estimates cardinality with minimal memory usage. This approach allows for significant memory savings, providing estimates with only a 3% error margin. Tempo's integration with Grafana Cloud further enhances cardinality management by enabling users to visualize, manage, and forecast metric usage, aiding in decision-making around quota adjustments and cost control.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 6 3,204 716 172 +14%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.