VictoriaMetrics Prometheus: replace or complement?

VictoriaMetrics Prometheus: remote write, vmagent, single-node or cluster. The operating criteria to replace Prometheus or simply complement it.
VictoriaMetrics Prometheus : remplacer ou compléter ?

Your Prometheus is getting heavy: the disk fills up, thirty-day queries crawl, and someone suggests “moving on”. VictoriaMetrics Prometheus then comes up in the discussion: should you replace Prometheus, or just extend it? The right answer depends on what you want to stop operating, not on a benchmark.

The facts come from docs.victoriametrics.com and the VictoriaMetrics/VictoriaMetrics repository, read on 13 November 2026. I did not deploy the stack to write this. I did not record the star count or the latest version number: check the repository’s releases page.

This piece is separate from Thanos and Grafana Mimir, which tackle the same pain with a different architecture. For rules, see naming recording rules.

Three operating decisions before picking a tool

Ask your team these questions before comparing products.

  • Who scrapes? Keep Prometheus for collection and rules, or hand scraping to another agent.
  • Where does the data live? On each Prometheus disk, or in a central store queried as one.
  • How much complexity do you accept? One binary, or several components to monitor.

VictoriaMetrics can answer all three, which is why “replace” and “complement” get confused.

VictoriaMetrics Prometheus: complementing with remote write

The lowest-risk scenario removes nothing. Prometheus keeps scraping and evaluating rules, and sends a copy of the samples to VictoriaMetrics. The repository presents the product as long-term storage for Prometheus with a global view: several instances can write to it and one query reads them all.

The configuration is two lines in prometheus.yml. The write URL, with port 8428 of the single-node version, appears in the vmagent documentation.

A prometheus.yml file with a remote_write section pointing to port 8428 and path /api/v1/write, then a vmagent command with promscrape.config and remoteWrite.url taken from the documentation
Source : docs.victoriametrics.com

You keep your current alerts and dashboards. You gain a second place to read metrics, and you can cut Prometheus retention to a few days. The cost: one more component to monitor, and the reliability of the sending, which you must watch.

Replacing Prometheus with vmagent

Replacement goes further. vmagent reads the same configuration file as Prometheus (-promscrape.config) and ships data to a compatible store with -remoteWrite.url. The documentation says it uses less RAM, CPU and disk than Prometheus, without a figure worth repeating here: measure on your own targets.

One detail matters for network outages. When the store is unreachable, vmagent buffers data on disk in -remoteWrite.tmpDataPath, then resends it once the connection returns. Cap that buffer with -remoteWrite.maxDiskUsagePerURL. You can also pass several -remoteWrite.url flags to replicate to several stores.

Careful: vmagent collects, it does not evaluate your alert rules. The project documentation points to a separate component, vmalert, which I did not detail here. Check this before deleting a Prometheus that carries your alerts.

Single-node or cluster: the real trade-off

The single-node version is one binary, configured by command-line flags, with no dependencies. Data goes to -storageDataPath (by default the victoria-metrics-data folder in the working directory), and retention is set with -retentionPeriod: one month (31 days) by default according to the documentation. The documentation says a single node can stand in for mid-sized clusters built with other solutions.

The cluster separates roles:

  • vminsert accepts data and spreads it across vmstorage nodes by consistent hashing (port 8480 for /insert);
  • vmselect answers queries by reading every vmstorage (port 8481 for /select);
  • vmstorage stores the raw data (port 8482 for its HTTP endpoints).
Options quoted from the cluster documentation: replicationFactor=2 on vminsert, dedup.minScrapeInterval=1ms on vmselect, retentionPeriod and storageDataPath on vmstorage, and ports 8480, 8481 and 8482
Source : docs.victoriametrics.com

Replication is enabled with -replicationFactor=N on vminsert, and the documentation then requires -dedup.minScrapeInterval=1ms on vmselect. The cluster also supports several isolated tenants. One point to remember: when you add vmstorage nodes, historical data stays on the old nodes. The project explains its choice not to rebalance automatically, to avoid failures that are hard to troubleshoot.

My rule of thumb: start single-node while one machine copes, and move to the cluster when you need to write and read in parallel across nodes. The page I read gives no official threshold, and I do not invent one.

What changes for queries and licensing

VictoriaMetrics accepts PromQL and offers MetricsQL, described as a PromQL-like language with extra functions. Your PromQL dashboards should keep working, but test them one by one: I did not verify the exact list of differences. If you write MetricsQL, you create a dependency on that engine.

On licensing, the repository carries an Apache 2.0 licence, confirmed in the LICENSE file, and the README says the single-node and cluster versions are covered by it. An Enterprise edition also exists, including downsampling, multiple retentions and anomaly detection. If you rely on downsampling, you need a paid licence or a free trial: read the Enterprise page before choosing.

Best practices

  • Start with remote write: you undo it by deleting two lines.
  • Compare the queries behind your main dashboards on both backends before switching the old one off.
  • Monitor vmagent’s disk buffer and the storage size.
  • Plan backups: the documentation names vmbackup and vmrestore, built on instant snapshots.
  • Check that no function you depend on is reserved for the Enterprise edition.

Frequently asked questions

Does VictoriaMetrics replace Prometheus?

It can replace it for collection (vmagent) and storage, or complement it through remote write. Alert rules belong to another component: verify this before removing anything.

Is VictoriaMetrics open source?

The repository is under Apache 2.0 for the single-node and cluster versions. Some features, such as downsampling, belong to the Enterprise edition.

What does Dynatrace say about this?

This article covers third-party open source tools only. For Prometheus metrics on the Dynatrace side, see docs.dynatrace.com without mixing SaaS and Managed.

Conclusion

Complement first, replace later if the operating gain is measured. Sources: VictoriaMetrics documentation, VictoriaMetrics/VictoriaMetrics repository. To place Prometheus against open telemetry, also read OpenTelemetry and Prometheus.

span.observer is an independent blog, not affiliated with Dynatrace LLC or the VictoriaMetrics project. Brand names belong to their owners. Tools change fast: check commands and options in the official documentation.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Alertes Microsoft Sentinel dans Dynatrace : ingérer, enrichir

Microsoft Sentinel alerts in Dynatrace: ingest and enrich

Related Posts