Prompt
I'm building an observability platform, what time-series database should I use?
Latest observation
For an observability platform, the “best” time-series database depends mostly on your query patterns, retention, cardinality, and whether you need metrics only or a broader observability backend.
Short answer
If you’re building a modern observability system from scratch, I’d usually start by considering:
- Prometheus + long-term storage layer if you’re primarily doing metrics
- ClickHouse if you want a single scalable analytics backend for metrics, logs, traces, and events
- Mimir / Cortex / Thanos if you want Prometheus-compatible metrics at scale
- VictoriaMetrics if you want a simpler, efficient metrics TSDB
- TimescaleDB if you want SQL + time-series and your scale is moderate
My practical recommendation
Pick ClickHouse if:
- You want to store metrics, logs, traces together or in one ecosystem
- You expect high cardinality
- You need fast ad hoc analytics
- You want a system that works well for observability-style OLAP queries
This is increasingly a common choice for observability platforms because observability data is often more “analytics over append-only events” than classic pure time-series.
Pick Prometheus-compatible stack if:
- You’re building around existing Prometheus tooling
- You need scrape-based metrics and PromQL
- You want strong ecosystem compatibility
In that case:
- Mimir for horizontally scalable metrics
- Thanos for long-term storage and global query
- VictoriaMetrics for a leaner alternative
How to choose
1) If you’re only doing metrics
Use a Prometheus-compatible TSDB:
- VictoriaMetrics: easiest operationally, very efficient
- Mimir: more enterprise-grade, scalable, PromQL-native
- Thanos: great for adding object storage and HA to Prometheus
2) If you’re doing logs + traces + metrics
Use ClickHouse unless you have a strong reason not to. It handles:
- high ingest
- compression
- fast aggregation
- flexible schema evolution
- mixed observability workloads
3) If you want SQL-first and moderate scale
Use TimescaleDB:
- familiar PostgreSQL ecosystem
- easy to query
- good for moderate volumes
- not usually my first pick for very large observability workloads
Things that matter more than the DB name
Before choosing, define:
- Ingest rate: samples/sec, events/sec
- Cardinality: number of unique label combinations
- Retention: 7 days vs 13 months changes everything
- Query types: dashboard aggregates vs deep forensic queries
- Multi-tenancy: do you need tenant isolation?
- Downsampling: required or not?
- Cost target: storage and query cost at scale
My default advice
If you want a single backend for a new observability platform:
Start with ClickHouse.
If you want best compatibility with existing metrics tooling:
Use Mimir or VictoriaMetrics.
A simple rule of thumb
- Metrics only + PromQL → VictoriaMetrics / Mimir / Thanos
- Full observability platform → ClickHouse
- SQL + moderate scale → TimescaleDB
If you want, I can also give you:
- a decision matrix by scale and workload, or
- a reference architecture for an observability platform using one of these databases.