Prompt
I'm building a metrics pipeline with high write volume, what database fits best?
Latest observation
For a high-write metrics pipeline, the best fit is usually a time-series database (TSDB) or a columnar analytics store, depending on how you query the data.
Best default choice
ClickHouse
If your workload is:
- very high ingest rate
- lots of aggregations
- dashboards / reporting / ad hoc analytics
- retention over days to months
then ClickHouse is often the best overall choice.
Why it fits:
- extremely fast bulk inserts
- excellent compression
- very good at aggregating metrics over time
- handles large volumes cheaply
- scales well for analytical workloads
If you need classic metrics/monitoring
Prometheus + remote storage
If this is infrastructure/app monitoring with:
- short retention
- scrape-based ingestion
- PromQL queries
- alerting
then Prometheus is great, but by itself it is not ideal for very high cardinality or long retention. In large setups, people often use:
- Mimir
- Thanos
- VictoriaMetrics
- Cortex
These are better when Prometheus alone becomes too heavy.
Good TSDB options
VictoriaMetrics
A strong choice if you want:
- very high ingestion
- Prometheus-compatible queries
- simpler ops than some alternatives
- efficient storage
It’s often a great fit for metrics pipelines specifically.
InfluxDB
Works well for time-series data, but for very high-scale analytics and cost efficiency, many teams now prefer ClickHouse or VictoriaMetrics.
Rule of thumb
- Operational metrics / monitoring → VictoriaMetrics or Prometheus + Thanos/Mimir
- Metrics analytics / product metrics / event aggregates → ClickHouse
- Need both → often ClickHouse plus a TSDB, or choose based on the primary query pattern
Important questions to decide
The best database depends on:
- Write rate: thousands/sec or millions/sec?
- Cardinality: how many unique label combinations?
- Query type: dashboards, raw lookups, aggregations, alerting?
- Retention: hours, days, months, years?
- Latency needs: sub-second dashboards or batch analytics?
My short recommendation
- If you want one database for high-volume metrics analytics, choose ClickHouse.
- If you want monitoring-style metrics with Prometheus compatibility, choose VictoriaMetrics.
If you tell me your expected ingest rate, cardinality, retention, and query patterns, I can recommend a specific stack.