You’ve decided the local fifteen-day Prometheus retention isn’t enough. You start reading about Thanos and VictoriaMetrics and within two hours you have eight tabs open, the marketing pages of both projects look identical, and you’re no closer to a decision. The two systems are not equivalent — they solve the same problem with different bets, and the right pick depends on cardinality, query mix, multi-tenancy, and how much operational surface you’re willing to own.
What’s happening
Thanos is the glue around Prometheus. It assumes Prometheus is the source of truth, runs sidecars next to each existing server, and ships TSDB blocks to object storage. Queries fan out from a central querier to every sidecar (recent data) and every store gateway (historical blocks from S3). The compactor downsamples and applies retention. You keep Prometheus exactly as it is; Thanos extends its retention to “as long as the bucket is paid for.”
VictoriaMetrics is a Prometheus replacement on the write path. The cluster version (vmselect/vminsert/vmstorage) ingests via remote-write, stores natively on local disk in a custom format, and exposes a PromQL-compatible API. There’s no S3 dependency in the default architecture — VictoriaMetrics owns the storage. The single-binary version (vmsingle) is even simpler: one process, one disk, configured retention.
The same observation looks like different bets:
- Thanos = “keep Prometheus, add S3 as cold storage.”
- VictoriaMetrics = “stop using Prometheus storage; use ours, which is faster and cheaper per-series.”
How to verify the workload that fits each
Run these against your current Prometheus fleet to size the decision.
Active series count (the cardinality budget):
curl -fs http://prometheus:9090/api/v1/status/tsdb | jq '.data.headStats'
# Look at numSeries — total active time series in the head block
Under ~5M active series per server and modest churn, both work. Above ~10M active series, VictoriaMetrics has a measurable per-series memory advantage. Above ~50M, Thanos sidecar memory becomes a real operational concern unless you shard Prometheus.
Query mix — historical vs recent:
# What % of queries reach beyond two weeks?
# Inspect Grafana datasource logs, or
sum(rate(http_requests_total{handler="/api/v1/query_range", job="prometheus"}[5m])) by (status)
Heavy historical queries (year-over-year, capacity planning, executive dashboards) hit the store gateway path in Thanos. Store gateway over S3 is slower than VictoriaMetrics’ local-disk historical query path. If most of your queries are recent-window incident investigation, the gap doesn’t matter. If you build dashboards that scan 90 days of data, VictoriaMetrics will feel faster.
Multi-tenant isolation requirement:
If different teams need separate data plus separate query authorization, VictoriaMetrics cluster has first-class tenant labels (vminsert accepts AccountID:ProjectID in the URL path) and per-tenant retention. Thanos has no first-class tenant model — you simulate it with external_labels and a tenancy proxy in front of the querier, and it’s never as clean.
The decision
Pick Thanos if:
- You already run a fleet of Prometheus servers and don’t want to migrate the write path.
- Your retention plan extends multiple years and you want object storage doing the heavy lifting (S3 lifecycle to glacier-class for 1h-downsampled data).
- Queries beyond the recent window are rare and slowness on those queries is acceptable.
- You’re comfortable operating five components (sidecar, querier, store, compactor, ruler) and you have an S3-compatible bucket already.
- You need global view across many heterogeneous Prometheus servers (different teams, different clusters) without enforcing a single ingestion path.
Pick VictoriaMetrics if:
- You’re starting fresh, or willing to switch Prometheus’s
remote_writeto point atvminsert. - Cardinality is high (10M+ active series) and per-series memory matters for cost.
- Multi-tenancy with hard query isolation is a requirement.
- You want fewer components —
vmsingleis genuinely one binary; cluster is three. - Local disk is acceptable for hot storage and you don’t need an S3-only path.
Pick neither, stay on plain Prometheus + remote storage, if:
- Your retention need is genuinely 30 days or less, you have one Prometheus, and you’re spending more time choosing a stack than running incidents. The default TSDB is fine for a long time.
Where each fails
The bad path for Thanos is compactor halts. Two Prometheus servers shipping blocks with the same external_labels produce overlapping blocks; the compactor stops on the overlap and refuses to compact further until you delete the overlap manually. New operators hit this within the first month because they forget to set replica differently on HA pairs. Disk on the compactor is also a recurring trap — it downloads blocks to local disk to compact, and a 2y retention with 5-min downsampling needs hundreds of GB of working space.
The bad path for VictoriaMetrics is the storage tier becoming a single point of failure if you run vmsingle and skipping replication when you adopt cluster. VictoriaMetrics cluster does not replicate by default — you must configure replication factor explicitly. Operators read the docs, set up a three-node vmstorage cluster, and assume replication is automatic; one disk dies and they lose data. Replication factor is 1 unless you set it.
The bad path for both: nobody owns the recording-rule strategy, the cardinality budget gets blown, and the long-term store becomes expensive and slow regardless of which engine is underneath. See the recording rule strategy article for the budget math; long-term storage is downstream of cardinality discipline, not a substitute for it.
Operational shape
Thanos is more pieces to operate but each piece is small and stateless except the compactor. VictoriaMetrics is fewer pieces but each piece is stateful and the storage tier is the long-pole on operations. Neither is significantly cheaper to run than the other in our experience; the difference is where the operational cost lands.
If you want a long-term metrics tier you don’t have to operate, our monitoring + on-call team runs both stacks under environment management — capacity planning, retention tuning, and compactor babysitting included. Start a scoping call to talk through which fits your workload.