ClickHouse for time series metrics, rollups, and SLOs
Blog post from Tinybird
ClickHouse can support large-scale time-series analytics despite not being a dedicated TSDB by using columnar storage, compression, MergeTree engines, carefully selected sort keys, and materialized-view rollups. The approach recommends narrow metric schemas for high-cardinality telemetry, distinguishes counter rates from gauge aggregations, batches ingestion efficiently, stores timestamps consistently, and uses tiered raw, minute, hourly, and daily tables with TTL-based retention to balance drill-down detail against long-range query cost. It describes SQL patterns for latest values, percentile latency, SLO monitoring, window comparisons, gap handling, late data, duplicate delivery, tenant-scoped APIs, and query-log analysis, while emphasizing that dashboard filters should drive partitioning and sort-key design. ClickHouse is positioned as especially useful for long-term analytics combining metrics with logs, events, and dimensions, whereas dedicated TSDBs remain preferable for native PromQL, service discovery, and scrape-centric operations; managed platforms such as Tinybird can reduce operational work by providing ingestion, transformations, APIs, and schema-management features.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Real-time | 2 | 4,432 | 1,050 | 222 | -31% |
| OpenTelemetry | 1 | 757 | 153 | 55 | -30% |
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.