Prompt
I need a recommendation for a time-series database to store metrics and events at high ingest rates. Please compare options for compression, retention, and dashboard query speed.
Latest observation
For high-ingest metrics and event storage, the best choice depends on whether you want a purpose-built TSDB, a search/analytics engine, or a cloud-managed observability stack. Here’s a practical comparison focused on compression, retention, and dashboard query speed.
Quick recommendation
- Best overall for metrics at very high ingest: VictoriaMetrics
- Best if you want SQL-like querying and distributed scale: ClickHouse
- Best if you’re already in the Prometheus ecosystem: Thanos / Cortex / Mimir
- Best for event/search-heavy workloads with flexible querying: Elasticsearch/OpenSearch
- Best managed option for observability metrics/logs/events: Grafana Cloud / Datadog / New Relic (if SaaS is acceptable)
Comparison
1) VictoriaMetrics
Good for: high-cardinality metrics, long retention, very fast dashboards
- Compression: Excellent
Very compact storage; generally among the best for Prometheus-style metrics. - Retention: Excellent
Built-in retention policies, efficient long-term storage. - Dashboard query speed: Excellent
Fast for Grafana dashboards and time-range filtering. - Strengths:
- Handles high ingest well
- Low operational overhead
- Great Prometheus compatibility
- Tradeoffs:
- Less flexible than SQL engines for arbitrary event analytics
- Mostly best for metrics, not complex event exploration
Verdict: Strong default choice if your workload is primarily metrics and you want high ingest + fast dashboards.
2) ClickHouse
Good for: metrics + events, analytical queries, large-scale ingestion
- Compression: Excellent to very good
Columnar storage gives strong compression, especially with repeated fields. - Retention: Excellent
TTLs are built in and easy to manage. - Dashboard query speed: Very good to excellent
Especially fast for aggregate queries over time windows; may need tuning for ultra-low-latency point queries. - Strengths:
- Extremely fast analytics on events
- Flexible SQL
- Great for mixed metrics and event data
- Tradeoffs:
- More schema/design work
- Operational complexity higher than TSDBs
- Not as plug-and-play for Prometheus-native workflows
Verdict: Best if you need one system for both metrics and events and want powerful querying.
3) Prometheus + Thanos/Cortex/Mimir
Good for: Prometheus-native metrics at scale
- Compression: Good
Prometheus itself is efficient, but long-term storage layers vary. - Retention: Excellent with external object storage
Thanos/Mimir/Cortex extend retention to months/years. - Dashboard query speed: Good to very good
Great for Grafana, though some setups have more query latency than VictoriaMetrics or ClickHouse. - Strengths:
- Native Prometheus compatibility
- Scales well with sharding and object storage
- Strong ecosystem
- Tradeoffs:
- More moving parts
- Query performance depends on deployment design
- Usually more operational effort than VictoriaMetrics
Verdict: Best if you already use Prometheus heavily and need scale-out retention.
4) Elasticsearch / OpenSearch
Good for: events, logs, text search, filtering by many fields
- Compression: Moderate to good
Better for indexed search than raw time-series compression. - Retention: Good
ILM/ISM policies help, but storage costs can rise quickly. - Dashboard query speed: Good for filtered searches, okay for aggregations
Time-series aggregations are decent, but often slower and more expensive than ClickHouse/TSDBs for pure metrics. - Strengths:
- Great for text search and event investigation
- Flexible filtering
- Useful when events need search semantics
- Tradeoffs:
- Storage heavy
- High ingest can be expensive
- Not ideal as a primary metrics TSDB
Verdict: Choose this if events/search matter more than efficient metric storage.
5) InfluxDB
Good for: traditional time-series workloads, smaller to medium scale, simpler deployments
- Compression: Good
Especially strong with time-structured data. - Retention: Good
Retention policies are straightforward. - Dashboard query speed: Good
Usually good for Grafana dashboards, though performance depends heavily on schema and cardinality. - Strengths:
- Easy to get started
- Purpose-built TSDB
- Tradeoffs:
- High-cardinality workloads can be challenging depending on version/design
- Less compelling than VictoriaMetrics or ClickHouse for many modern large-scale use cases
Verdict: Fine choice, but often not the top pick for very high ingest today.
Summary table
| System | Compression | Retention | Dashboard query speed | Best for |
|---|---|---|---|---|
| VictoriaMetrics | Excellent | Excellent | Excellent | High-rate metrics |
| ClickHouse | Excellent | Excellent | Very good–Excellent | Metrics + events analytics |
| Thanos/Cortex/Mimir | Good | Excellent | Good–Very good | Prometheus at scale |
| Elasticsearch/OpenSearch | Moderate–Good | Good | Good for search, okay for aggregates | Events/search |
| InfluxDB | Good | Good | Good | Simpler TSDB use cases |
Practical recommendation by workload
If you mainly store metrics and want:
- Highest ingest
- Strong compression
- Fast Grafana dashboards
Choose VictoriaMetrics.
If you store both metrics and events and need:
- SQL
- complex grouping
- event analytics
- flexible retention
Choose ClickHouse.
If you already run Prometheus and want long retention:
Choose Mimir/Thanos/Cortex.
If you need event search and investigation more than metrics efficiency:
Choose OpenSearch/Elasticsearch.
My default suggestion
If your goal is specifically high ingest rates for metrics and events, I’d usually recommend:
- VictoriaMetrics for metrics
- ClickHouse for events and analytical queries
If you want one database for both, ClickHouse is the most versatile choice, while VictoriaMetrics is better if metrics are the dominant workload.
If you want, I can also give you:
- a “best choice by scale” recommendation,
- a cost/ops complexity comparison, or
- a reference architecture for ingesting metrics + events into one or two stores.