Prompt
I'm building an observability stack with long-term retention, what time-series database should I choose?
Latest observation
For observability with long-term retention, the best choice depends on the balance you want between ingest scale, query latency, storage cost, operational simplicity, and ecosystem compatibility.
Short answer
If you want a modern, scalable, cost-efficient TSDB for metrics with long-term retention, I’d usually recommend:
- VictoriaMetrics — excellent for long-term metrics retention, efficient storage, simple ops
- Thanos — best if you already use Prometheus and want long-term storage on top of it
- Mimir/Cortex — good at large scale, especially in Grafana/Prometheus-heavy environments, but more operationally complex
- ClickHouse — strong choice if you also want to combine metrics/logs/traces analytics in one analytical backend
Best choice by use case
1) If you mainly want metrics and long-term retention
VictoriaMetrics
- Very storage-efficient
- Handles high cardinality well
- Easy to operate compared with some distributed alternatives
- Works well as a Prometheus replacement or remote storage target
Choose this if: you want strong performance, lower cost, and simpler operations.
2) If you already use Prometheus and want long-term retention without changing much
Thanos
- Extends Prometheus with object storage-backed retention
- Good for global querying across multiple Prometheus instances
- Popular in Kubernetes-native observability stacks
Choose this if: you already have Prometheus and want to keep that model.
3) If you need massive scale and multi-tenancy
Grafana Mimir
- Designed for horizontally scalable metrics storage
- Good multi-tenancy support
- Well-integrated with Grafana ecosystem
Tradeoff: more moving parts and more operational complexity.
Choose this if: you’re running a large platform or SaaS with many tenants.
4) If you want analytics across observability data types
ClickHouse
- Great for logs, traces, and metrics-style analytical workloads
- Very fast for aggregations and ad hoc queries
- Can be part of a unified observability platform
Tradeoff: it’s not a drop-in Prometheus TSDB, so you’ll design around it differently.
Choose this if: you want a unified analytical store and are comfortable with schema design and query tuning.
Practical recommendation
If you’re starting fresh and your priority is long-term retention for metrics with good performance and manageable ops, I’d start with:
VictoriaMetrics + object storage for backups/retention
or
Thanos if you already have Prometheus and want the least disruptive path
Important note
There isn’t one “best” TSDB for all observability signals:
- Metrics: VictoriaMetrics / Thanos / Mimir
- Logs: often better in Loki, OpenSearch, or ClickHouse
- Traces: often Tempo or ClickHouse
So for a full observability stack, it’s usually better to choose the storage backend per signal type, unless you intentionally want a unified analytics system.
My default recommendation
- Small to medium team: VictoriaMetrics
- Prometheus-first Kubernetes stack: Thanos
- Large-scale multi-tenant platform: Mimir
- Unified analytics for logs/metrics/traces: ClickHouse
If you want, I can also give you:
- a decision matrix comparing these options, or
- a recommended stack architecture for Kubernetes / bare metal / cloud.