Migrating from Prometheus to VictoriaMetrics: what the move involves
Moving from Prometheus to VictoriaMetrics means moving metric history out of local Prometheus storage into a time series database that can hold more history and scale beyond one node, while your scrape targets, alert rules and dashboards mostly stay in place. Both projects are licensed under Apache-2.0, so the decision rests on storage, retention and operations. Prometheus keeps its local database in two-hour blocks with a default retention of 15 days, and its storage documentation states that local storage is not clustered or replicated and must be managed like any other single-node database. Teams with long histories or growing server counts usually send samples through remote_write to an external store. The effort rises with the number of Prometheus servers, the amount of history you must carry over, and the number of dashboards and alerts that depend on it. Confirm those counts in your own environment before you plan the work.
The main decision is where history lives after the move. VictoriaMetrics ingests Prometheus exporter data and remote write, and its README describes it as a drop-in replacement for Prometheus in Grafana, queried with PromQL or its MetricsQL language. Check that every recording rule, alert expression and dashboard query you rely on returns the same results on the target, because MetricsQL adds functions beyond PromQL. Retention needs the same review. Multiple retentions and downsampling are listed among the VictoriaMetrics Enterprise features, so confirm with the vendor whether your retention plan needs that edition and whether a free trial license covers your evaluation. The README also documents storage on NFS-based services such as Amazon EFS and Google Filestore. Test write and query performance on the storage class you intend to use before you commit to it.
The short answer on effort is that it scales with how many Prometheus servers you run, how much history you must keep, and how many systems read from Prometheus. Prometheus has no built-in single sign-on, so any authentication in front of its web UI or API is a separate component to migrate and test, and alert routing through Alertmanager needs a confirmed path. Plan a parallel run before cutover: send the same scrape traffic to both systems, compare query results and alert behavior over a period agreed in advance, and keep the Prometheus data you still need until the new store is verified. Cutover then means switching Grafana data sources and alert paths, with a written rollback plan. Ask any implementation partner for a fixed-scope written plan that lists each of these steps.
Why teams move from Prometheus local storage
Prometheus stores samples in a local time series database, and its default retention is 15 days. That window suits alerting and recent troubleshooting, but it is short for capacity planning, year-over-year comparisons or audit requests for older metrics. VictoriaMetrics matters here when you need history beyond that window and want it kept outside the Prometheus host.
- Single-node local storage: the Prometheus storage docs state that local storage is not clustered or replicated and should be managed like any other single-node database, so the host is a single point of failure for its history.
- Adjustable default: retention can be set by time or size, but a longer local window still sits on the same disk and host.
- Remote write path: Prometheus can send samples to external long-term storage, which keeps history in a system designed to hold it.
- Enterprise downsampling: VictoriaMetrics Enterprise adds downsampling and multiple retentions, so older data can be kept at lower resolution for longer. This is a paid edition feature, so it applies only if you hold that license.
Before you commit, ask each team which retention windows and resolutions it needs, and confirm with VictoriaMetrics which features your edition includes.
A Prometheus server that fills its local disk has two choices: shorten retention or add storage to the same host. Prometheus can cap retention by size, so the oldest data is removed once the limit is reached. Moving long-term history to VictoriaMetrics lets the scraping host keep recent data while the long-term store absorbs the growth. This matters most when disk growth limits how much history you can keep.
- Size-based retention: Prometheus can limit retention by size, and the oldest data goes first. Check whether your data gaps come from that cap before you change anything.
- Remote write offload: samples sent to VictoriaMetrics leave the scraper's disk, so the Prometheus host only needs room for its recent window.
- Network storage options: the VictoriaMetrics README says it supports NFS-based storage such as Amazon EFS and Google Filestore. Confirm latency and throughput with your storage team before you use network storage for it.
- Small operational footprint: VictoriaMetrics runs as a single small binary with no dependencies, configured through command-line flags and distributed as binaries and Docker images.
- Disk relief timing: the disk benefit depends on when you shorten local retention, which comes after both systems have run in parallel during the move.
Before you migrate, record how many days each server keeps today, how fast its disk fills and which storage backend your platform team can support.
Each Prometheus server holds only its own data, so a question that spans several servers means switching dashboards or combining results by hand. VictoriaMetrics can receive remote write from many Prometheus servers and serve their data through one endpoint. This matters when several teams or clusters run their own Prometheus and the platform team wants one place to query history.
- Many senders, one store: each Prometheus server can remote write to the same VictoriaMetrics endpoint, so series from all of them sit in one store.
- One Grafana data source: the VictoriaMetrics README describes it as a drop-in replacement for Prometheus in Grafana, so dashboards can point at one source.
- Query language continuity: it is queried with PromQL or its MetricsQL language. Existing PromQL queries should be tested one by one, since MetricsQL extends the language.
- Mixed ingestion: it accepts Prometheus remote write along with InfluxDB line protocol, Graphite, OpenTelemetry and other formats, which helps where some teams use different agents.
- Deployment choice: a single node or a cluster can serve this role. That choice depends on ingestion volume and the operating effort you accept, and it is separate from the decision to consolidate.
Before you consolidate, confirm the label conventions each team uses, because series from different servers share one store and naming collisions will affect every dashboard that reads them.
License is rarely the reason teams make this move, and it should not decide the question on its own. Prometheus is Apache-2.0 licensed and has no paid enterprise edition. VictoriaMetrics single-node and cluster versions are both open source under the Apache License 2.0, so neither project changes license between them. The paid step is VictoriaMetrics Enterprise, which adds the features covered in the other tabs.
- No license change: the core software stays under Apache-2.0 on both sides of the move, so the decision rests on storage and operations.
- Prometheus cost structure: with no paid Prometheus edition, spending falls on infrastructure, storage, implementation and the staff who run the platform.
- Enterprise additions: the README lists anomaly detection, backup automation, multiple retentions, downsampling, long-term support release lines and support from the core team. These matter only if your plan depends on them.
- Trial access: Enterprise and LTS releases can be evaluated with a free trial license, which lets you test retention and downsampling before you buy.
- Support scope: Enterprise includes support from the core team, so ask what support the open-source build receives before you rely on it.
Before you commit, get the edition, license terms and release support schedule in writing, and check which features your retention plan depends on.
What maps cleanly from Prometheus to VictoriaMetrics and what needs rework
This table sets out each part of a Prometheus setup against its VictoriaMetrics counterpart, showing what carries over unchanged and what needs rework before cutover. Read the middle column for what keeps working and the right column for the change you must make and test. The main takeaway is that PromQL queries, exporters and Grafana panels usually move with little change, while retention, remote write, relabeling and rule evaluation need explicit checks in the version you deploy.
| Area | What maps cleanly | Migration note |
|---|---|---|
| PromQL queries and Grafana | VictoriaMetrics is a drop-in replacement in Grafana and is queried with PromQL or MetricsQL. | Repoint the data source, then compare panel output over the same window. Keep shared dashboards on plain PromQL while other tools query Prometheus. |
| Scrape targets and exporters | Exporter endpoints and job labels carry over, and VictoriaMetrics ingests Prometheus exporter data. | Keep job names and labels identical so existing dashboards and alerts still match. Confirm in the target version which component scrapes each target. |
| Remote write configuration | Prometheus remote write sends samples to external storage, and VictoriaMetrics accepts remote write. | Needs rework: endpoint URL, authentication, TLS and queue settings are environment specific. Test with one job before moving the rest. |
| Relabeling rules | Relabeling is supported, so existing rules can often be reused after review. | Needs review: confirm where each rule runs (scrape, remote write or ingestion) and check resulting labels on a sample target. |
| Retention settings | Prometheus keeps 15 days by default, set by time or size; VictoriaMetrics retention is set through command-line flags. | Rework: map retention and disk sizing to target flags and units, sized from measured ingestion. |
| Alert rules | Alerting rules written in standard PromQL carry over as expressions. | Confirm in the target version how rules are evaluated, which functions are supported, and how rule files reload. |
| Recording rules | Recorded series keep their names and labels if the expressions stay in PromQL. | Confirm the evaluation interval, where recorded series are written, and that dashboards still query the recorded names. |
| Alertmanager wiring | Prometheus sends alerts to Alertmanager, and Alertmanager can run as a cluster for high availability. | Point the alert sender at every Alertmanager instance in its list. Confirm which sender is active, then test routing, silences and inhibition. |
Documented ways to get Prometheus data and config into VictoriaMetrics
Each path below moves one part of a Prometheus setup into VictoriaMetrics: live samples, scrape targets, alert rules, dashboards and history. Treat them as separate workstreams with their own owners and checks, because a path that works for live samples can still leave gaps in alerts or old data. Confirm each route in the documentation for the VictoriaMetrics version you deploy.
Remote write for live samples
Prometheus can send samples to external long-term storage through its remote write protocol, and VictoriaMetrics ingests remote write. This is the path that keeps new data flowing while Prometheus stays the scraper of record during a trial. Check the endpoint, authentication and TLS settings before the first sample leaves Prometheus. Prometheus supports TLS client certificates and basic authentication, but basic authentication without TLS sends credentials in cleartext, so confirm both sides of the connection. Run both systems side by side long enough to compare series counts and query results.
Reuse exporters and scrape targets
VictoriaMetrics ingests Prometheus exporters directly, so node, service and application endpoints that already expose metrics can keep their existing job definitions. The part to check is the scrape configuration itself, including service discovery and relabeling rules. The README lists relabeling as supported, but confirm the rest against your version's documentation. Confirm which scraping component your version documents for pulling from targets, and whether the cardinality limiter changes any series you rely on. Keep the Prometheus scrape_configs section as the source of truth until each job is verified.
Alert rules and Alertmanager
Remote write carries samples, so the alert rules that evaluate them are a separate migration. Prometheus rule files and its Alertmanager connection are configured per component, and the Alertmanager docs say Prometheus should list every Alertmanager instance directly. Confirm where rules are evaluated and which component sends notifications before either stack pages anyone. Running both stacks can double alerts, so name one side as authoritative for each rule during the dual-run and silence the other side on purpose.
Grafana data source swap
The VictoriaMetrics README describes it as a drop-in replacement for Prometheus in Grafana, queried with PromQL or its MetricsQL language. Repointing the data source is a small configuration change, but dashboards that use MetricsQL-only functions will not run on a Prometheus fallback, so record which panels depend on them. Check template variables, recording rule names and any panels that depend on exact series labels, and test each dashboard against the new URL. Confirm which Grafana data source type your version documents for VictoriaMetrics.
Historical data backfill
Confirm in the VictoriaMetrics documentation for your version whether an import route for existing Prometheus TSDB data is documented. If you find one, test it on a copy of a few two-hour blocks and compare series counts, time ranges and labels with the source before relying on it. If none is documented for your version, say so plainly in the plan: VictoriaMetrics starts with samples that arrive after cutover, and the old Prometheus server stays running until its configured retention ends, so history remains queryable there. The VictoriaMetrics README is the starting point for that check.
How samples flow during the parallel run
The diagram starts with scrape targets, which Prometheus pulls over HTTP through service discovery or static configuration. Prometheus keeps its own local time series database, and remote write sends a copy of each sample to VictoriaMetrics, so both stores receive the same samples during the parallel run. Grafana can query either store with PromQL. The trust boundary marks the Prometheus web UI and API, which have no built-in single sign-on, so access is normally controlled by an authenticating reverse proxy in front of them. Alertmanager receives alerts from Prometheus. Before you cut over, check that remote write is not dropping samples and that dashboards return matching results from both stores.
Parallel run: Prometheus feeds VictoriaMetrics by remote write while Grafana queries both.
Migrating from Prometheus to VictoriaMetrics in ordered phases
This sequence moves Prometheus metrics to VictoriaMetrics in stages, so each phase proves that data, dashboards and alerts match before the old local storage is retired. Each phase ends with a named check that decides whether the next phase starts. Total timing depends on your environment and is set during planning.
Inventory scrape jobs, series and alert rules
Your team lists every scrape job, target group and alert rule on each Prometheus server, then estimates active series per job from the metrics each server stores. Confirm with the owner of each job which metrics their dashboards and alerts depend on. Check the series counts against your own sizing needs before any hardware or storage is ordered. This phase is done when you hold a written inventory with series counts per job and a list of alert rules that must behave the same on the new side.
Define retention and query requirements
Decide how long each class of metric must stay queryable and which teams need historical access. Prometheus keeps local data for a default of 15 days, configurable by time or size, so compare that default with your incident review and audit needs. Confirm the retention periods with compliance and security owners, and confirm the storage backend and capacity in your own infrastructure. This phase is done when each retention class has a named owner and an agreed storage plan.
Pilot one server with remote write
Configure one Prometheus server to send samples through remote write to a VictoriaMetrics instance while its local storage keeps running. VictoriaMetrics accepts Prometheus remote write, so existing scrape configuration can usually stay in place. Confirm that TLS and authentication match your security policy, since HTTP basic authentication is only safe over TLS. Check that series arrive with the expected labels, that sampled panels return the same results as the source, and that the write queue stays healthy. The pilot is done when these checks pass over a period you agree in advance.
Run dashboards and alerts in parallel
Keep both systems running, point a copy of key Grafana dashboards at VictoriaMetrics, and compare panel results and alert firing history against Prometheus. VictoriaMetrics supports PromQL and its MetricsQL language, so expect most queries to match, but test every function your team relies on. Confirm how alert rules are evaluated and routed in the target design, including whether Alertmanager stays in the path. Record each mismatch with an owner and fix it before cutover. This phase is done when every dashboard and alert in the inventory has a signed-off comparison.
Cut over Grafana and alert routing
Move production Grafana data sources and alert routing to VictoriaMetrics in a change window agreed with dashboard owners and the on-call rotation. Keep the Prometheus data source and previous alert routes available so the team can switch back if a check fails. Confirm how access control and SSO are enforced on each web endpoint, since Prometheus has no built-in single sign-on and teams usually place an authenticating reverse proxy in front of it. This phase is done when on-call receives test alerts through the new route and Grafana panels load from the new source.
Decommission local storage after retention window
Once the new system is the source of record and the retention window has passed, stop the old Prometheus servers and remove their local data directories. Confirm first whether history from before the pilot must be kept, because remote write only forwards new samples, so older data stays in local storage until it ages out or is exported by an agreed method. Keep a backup for the period your compliance owners require. This phase is done when a written decommission record lists what was removed, where any archived data sits and who approved the removal.
What drives the cost of migrating from Prometheus to VictoriaMetrics
This table lists the main drivers of effort when moving from Prometheus to VictoriaMetrics, with what raises or lowers each one and what to request in a written quote. Use it to scope the work before comparing proposals, since fixed-scope quotes follow from the agreed inventory. Infrastructure, storage and internal staff time are paid by your organization separately from any implementation fee.
| Driver | What raises or lowers effort | What to ask for in a quote |
|---|---|---|
| Prometheus servers and scrape jobs | Each server and job needs mapping. Hand-written configs raise effort; templated configs lower it. | Server and job inventory, target counts, and whether configs are generated from code. |
| Active series and label cardinality | High cardinality raises storage sizing and tuning work. Relabeling and the cardinality limiter reduce it before migration. | Current active series count, top labels by cardinality, and the proposed sizing method. |
| Dashboards and query language | Queries run in PromQL or MetricsQL, so each dashboard and rule needs a parity check. | Dashboard and rule count, a query test list, and who signs off on output parity. |
| Alert rules and Alertmanager routes | Grouping, inhibition and silences must match the current setup. Parallel alert runs add effort but reduce cutover risk. | Alert rule count, Alertmanager route tree, and a parallel-run plan for cutover. |
| Retention and backfill | Prometheus defaults to 15 days of local retention. Longer history and backfill add storage sizing and import time. | Retention targets per data type, whether backfill is in scope, and the import method. |
| Storage platform, including NFS | Local disks keep setup simple. NFS-based options such as Amazon EFS or Google Filestore are supported, so test their performance. | Storage type, throughput tests, and who owns the NFS or block layer. |
| SSO in front of the web UI | Prometheus has no built-in SSO, so most teams already run a proxy. Confirm the proxy still covers the new endpoints. | Chosen SSO method for the VictoriaMetrics UI and API, proxy ownership, and test scope. |
| Enterprise features in scope | Anomaly detection, backup automation, multiple retentions, downsampling and LTS lines are Enterprise features. Each one adds scope to test and a license to manage. | Which Enterprise features are required, the trial license plan, and LTS support terms. |
What usually goes wrong during a Prometheus to VictoriaMetrics cutover
Most cutover problems sit in the handover between the two systems. The six risks below share one pattern: history, alerts, labels, capacity and retirement timing drift apart until a dashboard or on-call page breaks. Each card names the check to run before you turn Prometheus off.
Losing history on short retention
Prometheus keeps local data for 15 days by default, so a team that never changed retention may have little history to move. Confirm which import or backfill path your VictoriaMetrics version documents before relying on it, and test it on a copy of live series. Check that a known time window returns matching query results on both sides before Prometheus is switched off. Plan retention on the Prometheus side before you start, because old data is only recoverable while it still exists.
Prometheus storage docsAlert rules that go silent
During cutover, alert rules run on a changed evaluation path, and a rule can fire twice, fire late or not fire at all. Prometheus sends alerts to Alertmanager, so confirm that every Alertmanager instance sits in the notification path and that grouping, inhibition and silences behave the same on the new side. Fire a test alert through each critical rule and confirm it reaches the on-call receiver. Keep a named owner for every rule so a silent one is caught before an incident is.
Alertmanager docsLabel and relabeling drift
A relabeling change or a renamed label creates a new series identity, so dashboards and alert expressions keyed on the old labels return empty results. VictoriaMetrics supports relabeling, which makes it easy to carry rules over but also easy to edit them during the move. Export the current relabel configuration and label sets from Prometheus, then diff them against the new configuration before cutover. Update each dashboard query to the agreed label names and record which queries changed.
Cardinality growth after the move
Once the new store accepts ingestion reliably, teams often add labels or scrape more targets, and series count climbs. High cardinality raises storage use and query cost, and the cost tends to surface after the migration team has stepped away. The VictoriaMetrics README describes a cardinality limiter, so decide its limits before go-live and review the highest series counts on a fixed schedule.
Storage sized without testing
The VictoriaMetrics README describes support for NFS-based storage such as Amazon EFS and Google Filestore. Disk sizing taken from Prometheus data directories does not predict the latency and throughput an NFS service delivers under continuous ingestion and dashboard queries. Load test on the actual NFS tier with representative series counts and query patterns, and track write latency and data growth over a full retention window before sizing production. Ask the storage provider to confirm the performance tier in writing.
VictoriaMetrics READMEDecommissioning Prometheus too early
Prometheus is the rollback path and the source for any history still on its disks, so turning it off before the parallel run closes removes both. Write exit criteria before cutover, covering dashboards, alert parity and query comparisons signed off by the owner of each service. Keep Prometheus running read-only for the agreed period, and schedule decommissioning only once the criteria are met and the retention window is covered.
How much effort does migrating from Prometheus to VictoriaMetrics take, and what does it need from our team?
What drives the effort and cost of moving from Prometheus to VictoriaMetrics?
The main drivers are the size of your estate, how much alerting and dashboard logic depends on Prometheus-specific behavior, and how many teams consume the data. Both Prometheus and the single-node and cluster versions of VictoriaMetrics are open source under the Apache License 2.0, so the open-source path has no license fee. Your spend is therefore people, infrastructure, and any support or implementation work you buy.
One-time costs include inventorying scrape targets, translating rules, checking dashboards and writing the cutover plan. Recurring costs include storage, compute for the topology you choose, patching and on-call time. Ask any implementation partner for a quote built from a written scope that lists targets, rule groups, dashboards, retention needs and environments, and that separates one-time migration work from ongoing support.
How long does a Prometheus to VictoriaMetrics migration usually take?
The duration depends on how many environments and scrape targets you have, how many rule groups and dashboards need an owner's review, and how long the parallel run must last. The length of the parallel run is tied to how much history your users need to compare, since Prometheus keeps 15 days of data by default and that retention is configurable by time or size.
The timeline also depends on your change windows and on how quickly alert owners can sign off each rule group. No standard duration applies to every estate, so ask for a timeline in the written scope with milestones for inventory, parallel run, cutover and decommissioning. DeployOpen agrees scope, deliverables and timelines in writing before fixed-scope work starts, so the schedule can be checked against your own calendar before commitment.
What skills does our team need for this migration?
The team needs four overlapping skill sets, and most of them already exist in a Prometheus shop:
- Prometheus: scrape configuration, service discovery, PromQL, and recording and alerting rules
- Grafana administration: data sources, dashboard permissions and folder ownership
- Alert ownership: Alertmanager routing, grouping, inhibition and silences, with a named owner for each alert
- VictoriaMetrics operation: command-line flags, storage sizing, upgrades, backups and monitoring of the database itself
VictoriaMetrics accepts PromQL and also its own MetricsQL language, so query knowledge carries over well. The gap is usually operation: nobody on the team may have run a time series database through upgrades and storage growth. Confirm that at least one person owns VictoriaMetrics operations before you start.
Can our team do the migration without an outside partner?
Yes, if your team already runs Prometheus, has clear alert owners and has the capacity to run a parallel environment for the full duration of the cutover. The open-source components carry no license cost, so the question is whether people are available. A team that has never operated time series storage in production, or that has no agreed owner for each alert, is the usual case for bringing in help.
A partner can cover the whole migration or specific parts, such as the rule translation, the parallel run design or the runbooks. DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with deliverables agreed in writing. Ongoing support and upgrades are available as retainers. Decide early which tasks your team keeps, so ownership does not move during the cutover.
What happens to alerting while Prometheus and VictoriaMetrics run in parallel?
The main risks during a parallel run are duplicate pages and silent gaps. If both systems send alerts into the same Alertmanager without routing rules, on-call staff can be paged twice. If neither system routes a rule group during a switch, that group can stop alerting without anyone noticing.
Alertmanager handles grouping, inhibition and silences for alerts from Prometheus, and it can run as a cluster. Prometheus should point at every Alertmanager instance rather than a load balancer, so plan that configuration before the run starts. Decide which system pages for each rule group, move ownership one group at a time, use silences during each switchover, and test each alert end to end. Confirm how your VictoriaMetrics design evaluates alerting rules and sends them to Alertmanager before the parallel run begins.
Does retention or downsampling require the Enterprise edition of VictoriaMetrics?
Downsampling and multiple retentions are listed as Enterprise features in the VictoriaMetrics README, so a downsampling requirement points to the Enterprise edition. Basic retention for a single period is a separate question that you should check against the open-source documentation before you assume it needs Enterprise. Enterprise also adds backup automation, long-term support release lines and support from the core team, and a free trial license is available to evaluate those features.
Before you request a quote, list each retention requirement, such as how long raw samples must stay and whether older data needs lower resolution. Map each one to a feature, then decide whether the Enterprise license is needed for that requirement alone. Ask the vendor or partner to confirm the mapping in writing. The VictoriaMetrics README lists the current feature split.
How DeployOpen scopes and delivers a Prometheus to VictoriaMetrics migration
DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, so a Prometheus to VictoriaMetrics move runs in your cloud accounts, data centers or air-gapped networks. Work starts with a written scope that sets out what moves, what is retired and what your teams must confirm. Most engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we scope
- The written scope lists each Prometheus job, exporter, rule group and Alertmanager route that is in the migration.
- Scope also records which Grafana data sources and dashboards change, and which queries need review against VictoriaMetrics.
- Deliverables, timelines and the quote follow from the written scope, and ongoing support is available as a retainer.
How we build
- Build covers remote write from Prometheus into VictoriaMetrics, with the existing Prometheus kept running until comparison is signed off.
- Single-node or cluster topology is set in scope, based on ingestion volume and the effort your team can run.
- Alerting path is reviewed, including how alerts reach Alertmanager and every Alertmanager instance you run.
How we hand over
- Documentation covers the scrape, remote write and storage configuration, retention settings and the cutover runbook.
- Your team receives the configuration as reviewable files, plus a rollback procedure for the cutover window.
- Retention settings and backup approach are documented so your storage and compliance teams can review them.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Upgrades follow VictoriaMetrics releases, which the project publishes about every two weeks, so the upgrade plan needs an owner.
- Confirm with your team which Enterprise features, such as backup automation, you need before choosing a license path.

