VictoriaMetrics as remote storage for Prometheus: when it fits and how the split works
Use VictoriaMetrics behind Prometheus when one Prometheus server can no longer hold the retention, disk or query load you need. Local Prometheus storage is a single-node database that is not clustered or replicated, so growing retention or query volume on that one node eventually forces a decision. In this split, Prometheus keeps doing what it does well: it scrapes targets, evaluates alert rules and sends alerts to Alertmanager. It also forwards samples over remote write to VictoriaMetrics, which holds the long-term copy. Grafana then points at VictoriaMetrics and queries it with PromQL, since VictoriaMetrics accepts PromQL and also its own MetricsQL language. Before committing, confirm which alert rules must keep running on the Prometheus side during a storage outage, and which dashboards will move to the new data source.
VictoriaMetrics ships as a single-node version and as a cluster version, and both are open source under the Apache License 2.0. The single-node binary is the simpler choice when one machine can handle your ingestion rate, retention and query volume, and it is configured through command-line flags. The cluster version separates ingestion, storage and query components so each can scale on its own. Choosing between them is an sizing exercise rather than a license decision, so ask for a written sizing estimate based on your active series, ingestion rate and retention window, and confirm the storage backend you plan to use. Both versions are distributed as binaries and Docker images, and the current release line is published on the VictoriaMetrics releases page.
This page covers the architecture decision and the remote write link between the two systems. It does not cover the configuration of remote write queues, the enterprise feature set or the full migration steps, which are handled in the sibling sections and topics. Plan for ongoing work on both sides: Prometheus upgrades, VictoriaMetrics upgrades, backups of the long-term store and monitoring of the remote write path itself. Confirm with the vendor and your own environment which features your license tier includes, because the enterprise edition adds capabilities such as downsampling and multiple retentions that the open source build does not provide.
What you need before connecting Prometheus to VictoriaMetrics
Connecting Prometheus to VictoriaMetrics through remote write adds a second stateful system to the monitoring path. The cards below cover the versions, storage, network, certificates and deployment shape to settle before the first sample is sent, so that scraping and alerting keep working if the long-term store is slow or unavailable.
Supported Prometheus version
Start from a Prometheus release that is still receiving fixes. The current minor line is 3.15.0, and the long-term support line is 3.13.x, which is supported until July 31, 2027. Minor releases generally stop receiving bug fixes six weeks after they ship, so an older 3.x server should be upgraded before it becomes the sending side of a long-term store. Confirm the current versions on the release pages before pinning, and check that your remote write settings still match the release you choose.
Release cycle docsTarget VictoriaMetrics version
Pin a specific VictoriaMetrics release rather than tracking latest. The research snapshot lists v1.154.0, published October 12, 2026, with releases roughly every two weeks, so the version you test against may already be behind by the time you deploy. Confirm the current tag on the GitHub releases page, read the changelog for remote write and query changes, and decide how you will test and roll out new releases, since VictoriaMetrics Enterprise also offers long-term support release lines.
VictoriaMetrics releasesStorage sized for retention
Decide how long metrics must be kept in VictoriaMetrics before you choose a disk. Prometheus keeps only a short local window, with a default retention of 15 days, so the long-term store carries the history that dashboards and audits depend on. Estimate ingestion rate and retention together, reserve headroom for growth in active series, and confirm whether your storage backend is local disk or NFS-based storage such as Amazon EFS or Google Filestore, which the README says is supported.
Network paths and firewall rules
Map every network path before configuration: Prometheus to VictoriaMetrics for remote write, Grafana to VictoriaMetrics for queries, and Prometheus to its scrape targets and Alertmanager. Remote write runs outbound from Prometheus, so a firewall rule that blocks the write endpoint can silently stop long-term retention while scraping and alerts look healthy. Document which hosts may reach the write and query ports, and test each path from the Prometheus host itself.
TLS certificates and authentication
Plan certificates and credentials for the write and query endpoints before enabling them. Prometheus supports TLS with a minimum of TLS 1.2 and client certificates, and basic authentication must not be used without TLS because credentials would cross the network in cleartext. Decide who issues the certificates, how they rotate, and where the Prometheus client credentials are stored. Confirm the exact TLS and authentication flags for your chosen VictoriaMetrics build in its documentation.
Prometheus security modelSingle-node or cluster deployment
Choose the deployment shape before building the configuration. VictoriaMetrics single-node is one small binary configured by command-line flags, which suits many single-site estates. The cluster version separates ingestion and query components and fits larger or multi-team estates, but it adds components to operate and monitor. Both editions are open source under Apache License 2.0, so the choice is about operating effort and scale, not licensing. Ask your team how many components they are willing to run, and who will handle upgrades for each.
VictoriaMetrics READMEHow to configure remote write from Prometheus to VictoriaMetrics
This sequence takes a team from an empty VictoriaMetrics endpoint to Prometheus shipping samples to it over TLS and authentication, while Prometheus keeps scraping and evaluating alerts locally.
Choose single-node or cluster VictoriaMetrics
The platform team decides whether one VictoriaMetrics single-node instance or a cluster version fits the expected series count, retention needs and availability requirements. Both versions are open source under the Apache License 2.0, so the decision is about operations and scale, not licensing. Ask the vendor or the project documentation which options are open source and which are Enterprise features (such as downsampling, multiple retentions and LTS release lines) before you commit. Record the chosen version and the storage path it will use. The step is done when the design is written down and approved by the team that will run it.
Deploy the VictoriaMetrics endpoint
The team installs the chosen VictoriaMetrics version from its published binaries or Docker images, configured through command-line flags, on infrastructure you control. Set the data path, retention and listen address, and place the service behind the network controls your security team requires. Confirm that the process starts and that its health endpoint responds from the Prometheus host. The step is done when the service reports healthy and the data directory is writable.
Confirm the ingestion path
Before touching Prometheus, the team checks that VictoriaMetrics accepts remote write traffic. Send a test write using the remote write path that the project documentation lists for your version, then query the stored series through the endpoint's query API. Confirm the test series appears with the expected labels. The step is done when a manual test sample is written and read back successfully.
Add remote_write to the Prometheus configuration
The Prometheus administrator adds a remote_write block to prometheus.yml with the VictoriaMetrics write URL, pointing at the ingestion path confirmed in the previous step. Leave scrape_configs and rule_files unchanged so Prometheus keeps scraping and evaluating alerts. Validate the file with promtool before reloading, then reload Prometheus using the method your deployment allows. Reload endpoints are disabled unless enabled explicitly, so confirm how your team triggers a reload. The step is done when promtool reports no errors and Prometheus restarts or reloads cleanly.
Enable TLS and authentication on the write path
Configure TLS on the VictoriaMetrics endpoint and set the matching TLS settings and credentials in the remote_write block, such as a CA file, client certificate or basic authentication. Store passwords and certificate keys in files or a secrets manager rather than inline in the configuration. Basic authentication without TLS exposes credentials in cleartext, so do not enable it on a plain HTTP endpoint. The step is done when an unauthenticated write is rejected and an authenticated write from Prometheus is accepted over TLS.
Verify samples arrive with a query
Wait for Prometheus to send its first batches, then run a query in VictoriaMetrics for a series that Prometheus scrapes, such as the up metric for a known target. Compare the result with the same query in Prometheus. Check the remote write metrics that Prometheus exposes for failed or pending samples to confirm the queue is not falling behind. The step is done when the query returns recent samples for the expected targets and the remote write failure counters stay flat.
Confirm local rules and Alertmanager still run
Remote write does not replace local alerting, so the team confirms that Prometheus still evaluates its rule files and sends alerts to every Alertmanager instance it is configured with. Trigger or inspect a test alert in Prometheus and check that Alertmanager receives it. Point Grafana at both data sources if dashboards need to move gradually. The step is done when a test alert appears in Alertmanager and rule evaluation shows no errors in Prometheus.
Single-node or cluster: which VictoriaMetrics layout fits your estate
The single-node version is one binary that handles ingestion, storage and querying in one process, configured through command-line flags. The VictoriaMetrics README describes it as a single small binary with no dependencies, distributed as binaries and Docker images, which keeps the operating model close to a single Prometheus server. Its failure domain is the one host: when that host or its disk fails, remote storage is unavailable until it is restored from backup, so backup and restore testing matter more than the install itself.
- Operating model: one process, one volume, one upgrade path, and a configuration set that lives in flags and deployment files.
- Scale: a good fit when one host can absorb your ingestion rate and retention, which you must measure against your own series counts.
- Failure domain: the whole store sits on one host and one disk, so plan a restore procedure and a tested backup.
- Upgrades: a single rolling restart with a short write gap, which Prometheus remote write buffering can cover if you size it.
- Cost driver: mainly the host, storage and the people who run it, with no license fee for the open-source build.
Confirm your ingestion rate, active series and retention against a test host before you commit to this layout.
The cluster version splits VictoriaMetrics into separate components for insertion, storage and selection, so each part can be scaled and placed independently. The README documents both versions as open source under the Apache License 2.0, so the choice is about architecture and operations, not licensing. A cluster spreads load and failure risk across nodes, but it adds more components to deploy, monitor, upgrade and keep consistent with one another.
- Operating model: several component types, each with its own sizing, configuration and upgrade step.
- Scale: designed for larger ingestion and query loads, where a single host becomes the limit.
- Failure domains: losing one storage or insert node reduces capacity rather than taking the whole store down, provided the cluster is sized and configured for that loss.
- Operating effort: more network paths, more monitoring targets and more careful upgrade ordering across components.
- Cost driver: several hosts or pods, replicated storage and the engineering time to run them.
Ask the vendor or your implementer to walk through component failure scenarios for your chosen replication settings before you size the cluster.
Storage choice affects both layouts. The README says VictoriaMetrics supports storing data on NFS-based storage such as Amazon EFS and Google Filestore. Support for a storage type does not mean it performs well for every workload, so latency, throughput and file locking behavior under your ingestion and query pattern must be tested. Local SSD and network-attached block storage have different trade-offs in cost, durability and recovery time.
- Local versus network storage: confirm the latency, IOPS and throughput your disks deliver under a realistic write and merge load.
- NFS-based storage: confirm the exact service, mount options and vendor guidance, then test query and ingestion performance on it.
- Capacity: size disk from your ingestion rate and retention, and leave headroom for merges and growth.
- Backups: confirm where snapshots go, how long a restore takes, and who runs the restore.
- Recurring cost: storage grows with retention, so the bill recurs while the initial setup is one-time.
Before choosing, ask your storage provider for documented performance figures for your workload and run a load test on the candidate layout.
The right layout depends on how many series you ingest, how long you keep data, how many teams query it, and how much operating capacity your platform team has. A smaller estate with one team and modest retention usually benefits from the simpler layout, while a larger estate with several failure domains to protect may justify the cluster. Neither choice removes the need for Prometheus to keep scraping and alerting locally, since Prometheus remains the component that evaluates alert rules.
- Team capacity: a cluster needs people who can run several component types well, not just install them.
- Recovery requirements: write down the acceptable data gap and time to restore, then match the layout to those targets.
- Query load: many dashboards and heavy queries may point toward separating read and write paths in a cluster.
- Enterprise features: check which features you need, such as downsampling or backup automation, because they are described for the Enterprise edition, not the open-source builds.
- Growth path: decide whether you can move from single-node to cluster later without losing history.
For a fixed-scope decision, ask for a written scope that names the layout, storage type, retention and test results your team will accept.
How samples flow from scrape targets to Grafana
Prometheus pulls samples from scrape targets and evaluates alert rules, sending firing alerts to Alertmanager. Prometheus then forwards the same samples through remote write to VictoriaMetrics, which stores them for long-term retention. Grafana queries both systems, so the write path is the boundary to check: confirm who can reach the remote write endpoint, how it authenticates, and whether Grafana's queries against VictoriaMetrics return the same results as those against Prometheus.
Samples leave Prometheus through remote write, and Grafana can query either store.
Which metrics, labels and query paths map between Prometheus and VictoriaMetrics
This table compares how series, external labels, retention and query languages behave on the Prometheus side and the VictoriaMetrics side of a remote write setup. Read each row as a check to run before cutover, not as a guarantee that every dashboard will render the same. The main takeaway is that the shared PromQL surface covers most queries, but MetricsQL extensions and retention settings must be confirmed against the dashboards you actually use.
| Item | Prometheus side | VictoriaMetrics side |
|---|---|---|
| Metric names and sample values | Series are written by remote write with names and labels as scraped or relabeled | Stored as received, so names and values should match; confirm with a side-by-side query |
| Labels on each series | Relabeling in Prometheus decides which labels leave the server | Labels are stored as sent; relabeling and cardinality limits can also be applied on the VictoriaMetrics side |
| External labels | Set in the global block to tag every series with source identity such as cluster or replica | Arrive as ordinary labels and let queries filter by source; plan a consistent naming scheme before go-live |
| Retention | Local retention in Prometheus can stay short while remote data is kept longer | Retention is configured on the VictoriaMetrics server; confirm the setting for your version and edition |
| Grafana data source type | Prometheus data source pointed at the Prometheus server for live alerts and recent queries | Prometheus-type data source pointed at VictoriaMetrics for long-range queries; confirm the URL and version in Grafana |
| Query language for dashboards | PromQL, the language used by the Prometheus docs and the rule files | PromQL works for most panels; MetricsQL adds functions that are not portable back to Prometheus |
| Alert rules | Evaluated in Prometheus and sent to Alertmanager, so alerting keeps working when remote storage is slow | Alert rules are not moved to VictoriaMetrics by default; confirm the rule evaluation setup before relying on it |
| Dashboard compatibility | Baseline output for each panel and recording rule | Compare results panel by panel against that baseline, including rate windows and histogram quantiles |
Securing the remote write path and the query endpoint
Prometheus sends samples to VictoriaMetrics over remote write, and Grafana and other clients query it over HTTP. Each of those paths needs its own transport encryption, authentication, network limits and credential handling, because neither Prometheus nor the storage layer should be trusted to protect the other by default. The cards below cover the controls to decide on before the first production sample is written.
TLS and client certificates on writes
Terminate TLS on the VictoriaMetrics write endpoint and decide whether Prometheus must present a client certificate. Prometheus supports TLS with TLS 1.2 as the minimum, and client certificate authentication is configured on the Prometheus side through the tls_config block of the remote write entry. Confirm with your certificate authority how the server and client certificates are issued, rotated and revoked, because an expired certificate silently stops samples from arriving.
Authentication in front of VictoriaMetrics
Decide how remote write clients and query clients authenticate to VictoriaMetrics. Basic authentication only protects credentials when TLS is in place, since without TLS the password travels in cleartext. Confirm in the VictoriaMetrics documentation which authentication options your chosen version supports natively and which need a proxy, and test that an unauthenticated request is refused on both the write and query paths.
Keeping admin APIs disabled
Prometheus admin HTTP APIs are disabled by default. The --web.enable-admin-api flag enables destructive operations, and --web.enable-lifecycle enables reload and shutdown endpoints. Leave both off on the Prometheus servers that forward samples, and enable them only for a named maintenance task. Record who may turn them on, because a reload endpoint exposed to a wider network can change scrape and remote write configuration without a code review.
Network restriction for the write and query paths
Limit which hosts can reach the remote write endpoint and the query endpoint. Prometheus servers at scrape sites need a route to the write port, and dashboards need a route to the query port, but neither needs to reach the other service. Confirm the firewall or security group rules in your own environment, and check that the query port is not reachable from networks that only need Prometheus to write.
SSO through a reverse proxy
Prometheus has no built-in single sign-on, and its security model notes there is no built-in CSRF protection on mutating endpoints. Plan an authenticating reverse proxy in front of any web UI or API that people use, and confirm that the proxy also covers query endpoints used by Grafana. Test which paths bypass the proxy, since a dashboard that reaches the backend directly skips the sign-in you configured.
Secret handling in the remote write block
Credentials for remote write usually sit in the remote_write section of prometheus.yml, which is often checked into version control and copied between servers. Keep passwords and tokens in files readable only by the Prometheus service account, referenced through password_file or bearer_token_file, and not inline. Confirm how your configuration management tool renders these files, and rotate the credential on a set schedule so that a leaked file has a limited window of use.
What is open source in VictoriaMetrics and what requires Enterprise
Both the single-node and cluster versions of VictoriaMetrics are open source under the Apache License 2.0, so the core remote storage path for Prometheus does not require a license purchase. The VictoriaMetrics README confirms this for both deployment shapes. That means the choice between single-node and cluster is a sizing and operating decision, not a licensing one. Your Prometheus servers keep the same remote write configuration either way, and the cost lines that remain are infrastructure, storage, implementation and the people who run the system.
VictoriaMetrics Enterprise adds anomaly detection, backup automation, multiple retentions, downsampling, long-term support (LTS) release lines and support from the core team, according to the README. Each of these changes how you operate the store. Backup automation and multiple retentions matter if you need different retention periods for different metric groups, and LTS lines matter if your change control requires a fixed patch cadence. Enterprise and LTS releases can be evaluated with a free trial license, so you can test whether they fit before committing. Ask the vendor for a written feature comparison and check which features your operating model actually needs.
Before you decide, confirm the current license terms and the feature list on the VictoriaMetrics README, since features move between editions and releases ship about every two weeks. Record which features your team would use in the first year, such as backups or downsampling, and check whether open-source tooling can cover them through your own backup jobs and retention planning. Ask for a quote that states the license scope, the support terms and whether trial use carries any obligations after the trial ends.
Why remote write falls behind or queries return different results
This table lists the failures teams most often hit when VictoriaMetrics receives Prometheus remote write and serves Grafana queries. Each row gives the likely cause and the direction of the fix, so you can check your own setup before changing anything. Start with the queue and cardinality rows, since they account for many of the gaps in data and dashboards.
| Symptom | Likely cause | Fix direction |
|---|---|---|
| Remote write queue backs up or drops samples | Prometheus remote write queue capacity is smaller than the ingestion rate, or the VictoriaMetrics endpoint is slow to accept writes | Check Prometheus remote write metrics for pending and dropped samples, then tune queue_config and shard limits and confirm VictoriaMetrics has enough CPU and disk write throughput |
| Samples rejected as out of order or too old | Clock drift between Prometheus and VictoriaMetrics, or a restarted or replayed Prometheus sending older timestamps | Synchronize clocks with NTP on every host, and confirm the out-of-order and retention limits you set in VictoriaMetrics match what your scrape intervals and backfills require |
| Duplicate series from an HA Prometheus pair | Both servers send identical series without a distinguishing external label, so VictoriaMetrics stores two copies | Set a unique replica label per Prometheus server in global external_labels and configure deduplication on the VictoriaMetrics side; confirm the exact flag names in the current release notes |
| Storage and series count grow faster than expected | High cardinality from labels such as user IDs, request paths or pod names, or churn from short-lived series | Find the top series by metric name and label with the VictoriaMetrics cardinality tools, drop or relabel unneeded labels in Prometheus, and use the cardinality limiter to cap new series |
| Dashboard panel returns different values in Grafana | A query uses a function or edge-case behavior that differs between PromQL and MetricsQL, such as range selection, rate extrapolation or lookback handling | Compare the same query against Prometheus and VictoriaMetrics on a known time range, and rewrite panels that depend on differing behavior in plain PromQL where possible |
| Slow queries or write stalls on NFS-backed storage | Network file storage adds latency to small random reads and writes that the storage engine relies on | Confirm the storage vendor and the VictoriaMetrics README guidance for NFS-based storage, measure write latency under load, and prefer local block storage when latency is high |
| Remote write rejected with TLS or authentication errors | Mismatched certificate authority, expired certificate, missing client certificate, or basic auth sent over plain HTTP | Verify the CA chain and certificate dates on both ends, configure the client certificate settings in remote_write on Prometheus, and avoid sending credentials without TLS |
| Alerts fire on data that Grafana does not show | Alert rules still run in Prometheus with local retention while dashboards read from VictoriaMetrics with a different retention or delay | Keep alert evaluation in Prometheus as the source of truth, and confirm that the query path and retention used by dashboards and alerts cover the same window |
Questions buyers ask before connecting Prometheus to VictoriaMetrics
What does it cost to connect Prometheus to VictoriaMetrics?
The open-source core of both products has no license fee: Prometheus is Apache-2.0 licensed, and VictoriaMetrics single-node and cluster versions are both Apache License 2.0. Your costs are the infrastructure to run the servers, the storage that holds the retained series, the implementation work, and the people who operate it afterward. Infrastructure and storage recur every month and grow with active series and retention. Implementation is one-time, though tuning and upgrades recur. When you ask for a quote, ask for each of these lines separately, along with the assumed series count, retention period and environments in scope.
How long does a Prometheus and VictoriaMetrics setup take?
The duration depends on your environment more than on the products. The main drivers are how many Prometheus servers already exist, whether remote write is already configured, how many Grafana dashboards and alert rules must be checked for query compatibility, the network and storage platform you run on, and how many approvals your change process requires. A single-node pilot behind one Prometheus server is usually much shorter than a cluster deployment across several environments. Ask any partner for a timeline built from a written scope, not from a generic estimate.
What must our team provide before the work starts?
Expect to provide access and information in four areas:
- Accounts or hosts where the VictoriaMetrics servers will run, with network rules and storage allocated.
- Access to the existing Prometheus configuration, the Grafana instance and the dashboards and alert rules that query it.
- Your retention targets, including how long metrics must be kept and at what resolution.
- A named owner for alert routing and a change window for switching remote write on.
Without these, the scope cannot be fixed in writing, and the first weeks usually go to discovery.
Can our internal team set this up without outside help?
Often yes, if you have engineers who already run Prometheus, understand remote write, and can operate a storage-heavy service. The work is not large in configuration terms, but it requires judgment about queue settings, retention, query compatibility and high availability. Teams without that experience tend to spend most of their effort on the parts they have not run before. An internal team can run a short pilot first, then decide whether to bring in a partner for the production design, the security review and the runbooks.
Will Grafana dashboards and alert rules keep working?
Most PromQL queries are expected to work against VictoriaMetrics, because it is described as a drop-in replacement for Prometheus in Grafana and accepts PromQL and its own MetricsQL language. Confirm this for your own dashboards, especially queries that use less common functions, recording rules or exact behavior of range selectors. Keep Prometheus evaluating alert rules during the transition so that alerting does not depend on the new store. Compare results side by side before you change any dashboard that people rely on.
What should we check after the setup is live?
Check that remote write is keeping up, that no samples are being dropped, that query latency is acceptable for the dashboards people use, and that disk usage grows as your sizing estimate predicts. Confirm the retention you configured is enforced and that backups can be restored into a test environment. Verify that access to the query endpoints is limited, since Prometheus-style APIs need authentication and TLS in front of them. Record these checks in your runbook so that the next operator can repeat them.
What does the enterprise edition add, and do we need it?
VictoriaMetrics Enterprise adds features such as anomaly detection, backup automation, multiple retentions, downsampling, long-term support release lines and support from the core team. It is publicly available and can be evaluated with a free trial license. Whether you need it depends on requirements you can state: a fixed support window for a regulated change process, automated backups you cannot script yourself, or several retention tiers. Ask the vendor for current licensing terms in writing before you assume any of these features are included in your plan.
How DeployOpen scopes, delivers and supports a VictoriaMetrics remote storage integration
DeployOpen treats VictoriaMetrics as remote storage for Prometheus as a fixed-scope integration inside infrastructure you control. We agree the write path, the query path and the operating model in writing before any build starts, then deliver a tested setup with documentation and a handover your team can run.
How we scope
- Written scope names which Prometheus servers remote write to VictoriaMetrics and which keep scraping and alerting locally.
- We confirm whether single-node or cluster VictoriaMetrics fits your series volume, retention needs and availability targets.
- Scope records the Grafana data source changes, the PromQL and MetricsQL queries in use, and any Enterprise features you want evaluated.
How we build
- We configure remote write on Prometheus, check queue behavior and label handling, and confirm samples arrive in VictoriaMetrics.
- We size disk and memory for your retention and storage backend, including NFS-based options if your platform requires them.
- We test dashboards and alert rules against the new store, comparing query results with the local Prometheus data before cutover.
How we hand over
- Deliverables include configuration files, deployment steps, sizing notes and a runbook for restarts, upgrades and storage growth.
- We document what stays on Prometheus, including scraping, rule evaluation and Alertmanager routing, so ownership is clear.
- We walk your platform and security teams through access controls, TLS settings and the open source versus Enterprise decisions made.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Upgrades to Prometheus and VictoriaMetrics are planned and retested against your dashboards and alert rules before rollout.
- Retainer scope, response expectations and testing frequency are agreed in writing, so you know what is covered and what is not.

