Prompt
I have a Prometheus-based monitoring stack and need to keep data for 18 months. Please help me choose between a time-series database, ClickHouse, and TimescaleDB.
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
If your main goal is 18 months of Prometheus metrics retention, the best choice depends on what you want to optimize for:
- Best fit for Prometheus-style metrics at scale: Time-series database / remote storage designed for metrics
- Best for ad hoc analytics, joins, and broader observability data: ClickHouse
- Best if you want SQL on top of PostgreSQL and moderate scale: TimescaleDB
Quick recommendation
Choose a purpose-built time-series storage system if:
- you mostly store Prometheus metrics
- you need efficient long retention
- you want PromQL-compatible workflows
- you care about cost efficiency and operational simplicity
This is usually the safest choice for 18 months of metric retention.
Choose ClickHouse if:
- you want to combine metrics with logs/events/traces
- you need fast analytical queries over very large datasets
- you’re comfortable modeling Prometheus data into tables yourself
- you want strong compression and cheap long-term storage
Choose TimescaleDB if:
- you prefer PostgreSQL + SQL
- your data volume is moderate
- you want relational joins and easier familiar tooling
- you’re okay with more database-management overhead as data grows
Comparison
1) Time-series database / Prometheus long-term storage
Examples: Cortex, Thanos, Mimir, VictoriaMetrics, InfluxDB depending on use case.
Pros
- Designed for metrics ingestion and retention
- Usually best cost/performance for Prometheus data
- Often supports native Prometheus ecosystem integration
- Good for downsampling, compaction, retention policies
- Scales well for high-cardinality metrics when designed properly
Cons
- Less flexible than SQL systems
- Not ideal for complex joins or mixed data types
- Some products add operational complexity if self-hosted
Best for
- Keeping Prometheus metrics for 18 months
- Large scrape volumes
- PromQL-first monitoring teams
2) ClickHouse
Pros
- Excellent compression
- Very strong for large analytical queries
- Fast aggregations over long time ranges
- Good choice if you want metrics plus logs/events in one system
- Can be very cost-effective at scale
Cons
- Not a native Prometheus backend by default
- You’ll need to design schema and ingestion pipeline carefully
- Query model differs from PromQL
- High-cardinality time-series workloads can be tricky if modeled poorly
Best for
- Long-term analytics and reporting
- Observability platforms with multiple data types
- Teams that are comfortable with SQL analytics and data modeling
3) TimescaleDB
Pros
- PostgreSQL-based, so SQL is familiar
- Good for time-series with relational needs
- Easier to integrate with existing Postgres tooling
- Good features like hypertables, compression, and retention policies
Cons
- Can become expensive/heavy for very large metric volumes
- Usually not as efficient as specialized time-series systems for pure Prometheus metrics
- Not the best fit if you have very high cardinality and high ingestion rates
- Operational burden grows with long retention and scale
Best for
- Moderate metric volumes
- Teams already standardized on PostgreSQL
- Use cases requiring joins, relational metadata, and SQL
For 18 months specifically
Storing 18 months of Prometheus metrics is mostly about:
- Ingestion rate
- Cardinality
- Query patterns
- How often you need raw vs aggregated data
If you need raw 18-month retention:
- ClickHouse can do it well if modeled correctly
- A dedicated TSDB is often simpler and more purpose-fit
- TimescaleDB may struggle or become costly at larger scale
If you can downsample:
A very common best practice is:
- keep high-resolution data for 15–30 days
- keep downsampled/aggregated data for 18 months
That often makes storage much more practical.
Practical decision guide
Pick a dedicated metrics TSDB if:
- your stack is primarily Prometheus
- you want minimal friction
- your main job is monitoring, not analytics
- you need retention without redesigning your data model
Pick ClickHouse if:
- you want a long-term observability warehouse
- you are okay building an ingestion pipeline
- you want powerful analysis across metrics and other telemetry
- you expect heavy reporting and slicing/dicing of historical data
Pick TimescaleDB if:
- data volume is manageable
- SQL/Postgres matters most
- you need relational access to metadata
- you want a simpler operational model than a full analytics stack
My recommendation
For a Prometheus-based monitoring stack with 18 months retention, I would usually recommend:
Primary recommendation: a Prometheus-oriented long-term storage system
If you want the least risk and best compatibility.
Second choice: ClickHouse
If you want long-term analytics and are willing to engineer the schema/pipeline.
Third choice: TimescaleDB
If your scale is moderate and you want SQL/Postgres convenience.
A useful rule of thumb
- Pure metrics retention → dedicated TSDB
- Metrics + analytics at scale → ClickHouse
- Postgres-centric, moderate scale → TimescaleDB
If you want, I can also help you decide based on:
- your ingestion rate
- number of time series/cardinality
- required query latency
- whether you need raw or downsampled retention
- whether you run self-hosted or managed infrastructure