← Writing

VictoriaMetrics vs Prometheus on three nodes, measured

21 November 2026

Setup

  • Three nodes with 32 GiB each; Longhorn already over-committed. Memory and disk are the constraint.
  • Candidates: LGTM (Loki, Grafana, Tempo, Mimir) and the Victoria stack, both with Grafana in front.
  • VictoriaMetrics ran in production as a read-only observer mounted on Prometheus’ own scrape config: same jobs, same 53 targets, same interval.

Result

resident memory, same 53 targets, production (MiB)Prometheus1,140VictoriaMetrics322
28% of the memory for the same scrape.
PrometheusVictoriaMetrics
samples per scrape117,153116,025
disk used66.4 GiB at 30 days0.14 GiB, short retention
simple aggregation17-22 ms7-18 ms

Parity check

  • Before trusting the numbers, both backends had to scrape the same thing: count(up) by (job) on each, then diff the job sets. Scrape input ended within 1% (116,025 against 117,153 samples per scrape).

Not chosen

  • Mimir: needed replication factor 1 and in-memory rings on 2-vCPU guests. Five backends at once caused etcd failed twice.
  • Logs and traces: chosen by ownership (one stack, one retention policy, one upgrade surface), not benchmarked.

Cutover

  • vmalert: two replicas, the same three rule ConfigMaps, both Alertmanager replicas named through a headless service, and remote-write to the store so rules that read ALERTS keep working.
  • 216 dashboard panels pin the datasource uid prometheus; repointing that uid’s URL was a one-line change.
  • The dead-man’s switch no longer falls back to the old Prometheus; with the fallback, a dead evaluator looked healthy.
  • Retention: about 43 MB/hour projects to 31 GB in 30 days on a 20Gi volume, so 14 days.

What it bought, and what is still open

  • Room: 322 MiB and a fraction of the disk for the same scrape, on a cluster where those are the scarce resources.
  • One retention policy instead of four, and one rule engine reading the Prometheus-format rules unchanged.
  • Still open: the store is a single replica with 14 days, so a rebuild loses its history; the old Prometheus volume stays on disk as an archive that can be queried by starting it for ten minutes.