Prometheus 2 to 3 upgrade

A Prometheus 2 to 3 upgrade is a planned change to scraping, queries, alert routing and storage, not a binary swap. This page covers the supported path, the breaking changes to test, the upgrade sequence and what drives effort.

On this page

How to plan the Prometheus 2 to 3 upgrade without a surprise cutover

Plan the move as a staged upgrade, not a single cutover. If your team runs one or more Prometheus 2.x servers feeding dashboards and Alertmanager, the safe path is to inventory every query, rule and scrape target against the 3.x changes, step through the v2.55 release, and run a 3.x instance in parallel before any production switch. The 2.x line matters here because a minor release generally stops receiving bug fixes six weeks after it ships, according to the Prometheus release cycle page, so staying on an old 2.x minor leaves you exposed to unfixed defects.

Choose the target line before you start. The LTS 3.13 line receives bug fixes for one year and is supported until July 31, 2027, while the latest minor release follows the six-week cycle and needs a faster upgrade rhythm. An LTS target fits teams that want fewer upgrades and a predictable support window. A minor-release target fits teams that can test and roll forward every six weeks. Whichever you pick, confirm the exact breaking changes against the official release notes for that version, because the list of changes that affect your scrapes, queries and alert rules depends on the exact target release.

Use the parallel run to find the failures that matter. Point a 3.x server at the same targets, compare the results of your dashboard and alerting queries, and check that Alertmanager receives the same alerts from both servers. Record which scrape endpoints, label-matching regexes and le histogram queries behave differently, and decide who owns each fix before the cutover window. Confirm the rollback path too: once a newer server has written to its storage, reverting may not be a simple restart, so keep the 2.x server running until the comparison is signed off.

What changes in the Prometheus 2 to 3 upgrade

This table lists the main breaking areas for moving from Prometheus 2.x to 3.x, with the impact of each and a concrete check to run before cutover. Read each row as a pre-upgrade task: find where your estate touches the change, then test it on a canary server. The rows cover the areas identified for this upgrade and must be confirmed against the official Prometheus 3.0 release notes before you plan the work.

ChangeImpactAction needed
Upgrade path through v2.55Jumping straight to 3.x skips the deprecation warnings that v2.55 surfacesUpgrade to v2.55 first, run it with current config, and fix every warning it logs
Missing Content-Type headers on scrapeTargets that omit the header can fail to scrape after the upgradeRun test scrapes against each target endpoint and inspect response headers; fix the exporter or the target
Regex matcher behaviorSome =~ and !~ matchers in queries and rules can return different seriesGrep rules, dashboards and alert expressions for regex matchers; compare results on a canary
le label values in histogramsQueries or recording rules that match literal le values can return no dataGrep for le= matchers and recording rules that hardcode bucket boundaries; compare outputs
UTF-8 metric and label namesNames with characters outside the classic set are accepted, but downstream tools may not read themInventory metric and label names; check remote write consumers and dashboards before adopting new names
Alertmanager v1 API removalAlertmanager targets set to the v1 API stop receiving alerts after the upgradeSearch the Prometheus config for api_version and move every Alertmanager entry to v2
Admin and lifecycle endpoints and flagsOnly affects teams that call these endpoints or flags from scripts or pipelinesIf you use reload or admin endpoints, grep automation and runbooks for them and confirm the flags still apply

Which phases and gates sit between 2.x and the 3.x target

The diagram starts at the existing 2.x estate and runs through an inventory and promtool check pass, then a stepping stone upgrade to v2.55. Scrape and query findings are fixed before a canary 3.x server is built and its query results are compared with production. The first gate decides whether the checks are clean enough to move to v2.55. The second gate is a go or no-go on query parity. Cutover of the scrape and rule servers comes before the Alertmanager configuration update. The final gate sets the rollback point before any storage change, because storage changes are the hardest step to reverse.

Phases and go or no-go gates from the 2.x estate to the 3.x target.

What to inventory and back up before touching Prometheus 2.x

Prometheus 3 changes how some scrapes, queries and alert routes behave, so most upgrade failures trace back to something that was never written down. The six items below are the inventory and safety net to complete before any binary changes. Each one maps to a specific way the 2.x to 3.x move can break monitoring that already works.

Scrape targets with non-standard responses

List every scrape job, exporter and target, and note which ones return metrics without a proper Content-Type header or use an unusual exposition format. Prometheus 3 enforces stricter parsing rules, so a target that worked for years can start failing its scrape with no configuration change on your side. Record the target, the exporter version and the owner, so failed scrapes after the upgrade can be traced quickly.

Prometheus overview

Rules and dashboards with regex and le matchers

Export every recording rule, alerting rule and dashboard query, then search for regex matchers, le label usage and any label names that may be affected by UTF-8 handling. Regex matchers in Prometheus 3 are fully anchored, so a pattern that matched a substring before may now match nothing and silently stop an alert. Queries that compare le values or assume a bucket boundary format need the same review.

Data directory, configuration and web config backup

Back up the storage data directory, prometheus.yml, rule files and the web configuration file together, and write down the retention settings in effect (time and size limits). Local storage is a single-node database, so this backup is the only fallback if the upgrade or a storage migration goes wrong. Confirm that a restore has been tested on a copy, not assumed to work.

Default retention
15 days
Storage docs

Test environment with representative targets

Build a non-production Prometheus that runs the same version path you plan to use, with a copy of the production configuration and rules. Point it at a representative sample of targets, including the non-standard exporters from the first card. Without this environment, the first sign of a broken scrape or query is a production alert that never fires.

Alertmanager configuration and v1 API paths

Review the Alertmanager configuration and every integration that calls its API directly, including scripts, runbooks and custom tooling. Any client still using the Alertmanager v1 API paths must move to v2 before the upgrade, because the v1 API is removed in the Prometheus 3 line. Check receivers, routes and silences so you know which alerts depend on each path.

Ownership and sign-off list

Name an owner for each scrape job, rule group, dashboard, receiver and downstream integration, and record who approves the cutover and who can call a rollback. Unowned rules are the ones that get left broken after the upgrade. A written sign-off list also gives auditors and on-call teams a clear record of who accepted the changed behavior.

Sequence for the Prometheus 2 to 3 upgrade

This sequence moves a Prometheus 2.x server to the 3.x line in stages, so each change has a check and a rollback point. Teams that follow long-term support target LTS 3.13, and teams that follow the six-week cycle target the latest minor release, v3.15.0. Each stage ends with evidence your team can review before it moves on.

  1. Freeze changes and back up the current server

    Pause edits to prometheus.yml, alerting and recording rules, and Alertmanager configuration until the upgrade closes. Record the running Prometheus version, the command-line flags, the storage path and the retention settings. Take a snapshot or file-level backup of the data directory and store the configuration in version control. The step is done when someone outside the upgrade team can restore the configuration and the backup from the record alone. This backup is your main rollback point for the 2.x server.

  2. Run promtool checks on all configuration

    Run promtool against the main configuration, every rule file and the web configuration file, using the promtool build that matches your current server. Fix syntax errors, unknown fields and invalid rule expressions before changing any version. Run rule unit tests if your team already keeps them in CI. The step is done when every check returns cleanly and the output is saved with the change record. Checks on the 2.x build do not prove 3.x compatibility, so they are a baseline for the next steps.

  3. Upgrade to v2.55 and confirm scrapes and rules

    Upgrade the production server to Prometheus v2.55 first, since the 3.x line is planned from that stepping stone. Keep the same configuration and storage, then review the targets page and the rule evaluation status. Look for scrape errors, including responses that arrive without a Content-Type header, and for rules that fail to evaluate. The step is done when every target that reported before the upgrade still reports, and the logs show no new scrape protocol or rule errors over an observation period your team sets. Roll back to the previous 2.x build if the errors affect production targets.

  4. Fix findings from the v2.55 run

    Work through each finding from the promtool checks and the v2.55 run. Fix exporters that send no Content-Type header or send an unexpected one, and update the exporter or its configuration instead of only changing Prometheus. Review queries that use regular expressions or depend on the le label for histogram buckets, because those are the areas where 3.x behavior changes. Re-run promtool and the v2.55 checks after each fix. The step is done when the findings list is empty or each remaining item has an owner and a written decision.

  5. Compare key queries on a 3.x canary server

    Deploy a 3.x server beside production, using LTS 3.13 or v3.15.0 depending on the chosen line, and point it at the same targets and a copy of the rules. Choose a set of dashboard queries and alert expressions that matter most to operators, then compare their results against production over the same time range. Check alert states, firing and pending alerts, and the notifications they produce. The step is done when every difference is explained, fixed or accepted in writing. Stop here and keep 2.x as the active server if a difference affects paging or compliance evidence.

  6. Cut over scrape and rule servers

    Schedule the cutover with the team that owns the dashboards and on-call rotation, and tell them which queries changed. Switch the scrape and rule evaluation role to the 3.x server, and keep the 2.x server stopped but not deleted. Confirm that the targets page shows the expected targets, that rule groups evaluate without errors and that the storage path is writing new samples. The step is done when operators confirm their dashboards load and the server reports healthy. Note that storage written by 3.x may limit a return to 2.x, so confirm the rollback limits in the release notes before you start.

  7. Update Alertmanager client configuration

    Check the Prometheus alerting section for the Alertmanager API version it uses, because the Alertmanager v1 API has been removed. Point the configuration at the supported API and confirm that Prometheus sends to every Alertmanager instance in your cluster. Reload the configuration through the reload path your team permits, then send a test alert through a known route. The step is done when the test alert reaches the expected receiver, grouping and silences behave as before, and no client errors appear in the Prometheus or Alertmanager logs.

  8. Monitor the upgraded servers after cutover

    Watch scrape success rates, rule evaluation failures, alert volume and resource use on the new server for a period your team agrees before the change is closed. Compare alert firing counts with the baseline recorded before the upgrade, and investigate any new silent gaps in dashboards. Keep the 2.x backup and configuration record until the review is complete. The step is done when the change review records that the 3.x server meets the agreed checks, the backup is archived and the team has set the next upgrade date on its chosen release line.

What breaks after the switch and how to find it

Prometheus 3 can reject scrape responses that do not declare a Content-Type header. Targets that worked on 2.x may then show as down, and their series stop appearing without any error inside the application itself. Rules and dashboards still load, so this failure is easy to miss unless you check the target list directly.

  • Symptoms: up falls to 0 for one or more jobs right after cutover, and Status > Targets shows scrape errors that mention the response format or content type.
  • Diagnostic: run curl -sI against the target's metrics path and confirm that a Content-Type header is present. Repeat the check against the same target on the 2.x server before cutover.
  • Sweep the canary: query up == 0 grouped by job to find every affected exporter, then confirm whether the series those exporters used to produce are still present.
  • Fix owner: the team that runs the exporter or instrumented application makes the change, usually by moving to a release that sends the header. Check the exporter's release notes for the version you run.
  • Temporary workaround: if an exporter cannot be updated in time, agree with the platform team on any interim scrape setting, and confirm it in the 3.x release notes before using it.

Check the up series for every job on the canary, not only the jobs you expect to fail.

Effort drivers in a Prometheus 2 to 3 upgrade

This table lists the inventory items that change how much work a Prometheus 2 to 3 upgrade takes, why each one adds effort, and how to shrink it before work starts. Effort follows from what you run, not from a fixed duration, so use the table to build your own inventory and then ask partners to quote against it.

DriverWhy it adds effortHow to reduce it
Scrape targets and exportersEvery job must be checked for scrape failures, especially targets that do not send a Content-Type header, and exporter versions must be confirmed against the new release.Export the active target list, group targets by job and exporter, and test one representative target per group on a canary server.
Recording and alerting rulesRules using regex matchers, changed label behavior, or functions whose results shifted need line-by-line review and unit tests.Count rules by file, run promtool checks on every rule file, and retire rules nobody reads before the upgrade.
Dashboards built on regex or le labelsQueries that depend on regex anchoring or on histogram bucket labels can return different results or empty panels after the upgrade.Search dashboards for regex matchers and le label references, then compare panel output on the old and new servers over the same time range.
Custom exporters and client librariesCode that exposes metrics or uses older client libraries may need updates to match current metric and naming behavior, and each team owns its own code.List every custom exporter and the client library version it uses, assign an owner to each, and schedule library bumps separately from the server upgrade.
Alertmanager receivers and integrationsIntegrations that call the Alertmanager v1 API must move to a supported API, and each receiver must be tested end to end.Identify every client calling the v1 API, record the receivers and routes in use, and send a test alert to each receiver after the change.
Stored data and retention settingsStorage format and retention affect rollback options, backup time, and how long old queries need to be compared against new results.Record current retention by time and size, take a backup before starting, and confirm with your vendor or your own tests what rollback is possible once storage has changed.
Environments and approvalsEach environment (lab, staging, production, air-gapped copies) and each approver adds a test cycle and a sign-off step.Agree the environment order and the approver list in writing before work starts, and reuse one test checklist across all environments.
UTF-8 names and new name rulesMetric or label names that rely on characters outside the older rules must be found and either renamed or confirmed as supported.Scan metric and label names across all exporters and rules, and decide early which names change and which dashboards and alerts follow them.

Where rollback stops working once storage has changed

Rollback is cheap while the 3.x server has only changed configuration and read the same data. It gets expensive once the 3.x server has written samples to its local time series database, because a 2.x binary cannot be assumed to read those blocks and the write-ahead log back cleanly. Treat the cutover gate, the point where you switch production traffic and alerting to the 3.x server, as the last easy rollback point. Before passing it, confirm that the canary results, promtool checks and rule unit tests described in the testing section are all green, and agree in writing who makes the go or no-go call and what evidence they need.

Two practical options keep the 2.x path open. The first is to run the 2.x server in parallel with the 3.x canary for the whole canary period, scraping the same targets and evaluating the same rules, so you can switch the dashboards and Alertmanager routing back without losing history. The second is to take a copy of the 2.x data directory immediately before cutover, which gives you a point you can restore from if the 3.x server must be abandoned. Confirm the exact steps for stopping the server cleanly and copying its data with your own environment and your vendor documentation before relying on them, because a copy taken from a running server is not the same as a consistent one.

The Prometheus storage documentation describes local storage as not clustered or replicated and says it should be managed like any other single-node database. That means the backup and recovery plan must cover the one node that holds the data: where snapshots are stored, how long they are kept, how restores are tested, and who can run them under pressure. Record the default 15 day retention and any size limits you set, because a snapshot older than your retention window will not help you recover recent history. Decide in advance how long you will keep the 2.x server and its snapshots after cutover, and treat that retention as part of the upgrade plan rather than an afterthought.

Questions teams ask before upgrading Prometheus 2 to 3

What drives the cost of a Prometheus 2 to 3 upgrade?

The main driver is how much of your monitoring estate must be checked and changed: the number of Prometheus servers, scrape configurations, alert rule groups, dashboards and PromQL queries, and how many targets expose metrics in ways the 3.x scrape protocol handles differently. Prometheus is Apache-2.0 licensed, so there is no license fee. The cost is people and infrastructure. One-time work includes the inventory, fixes, test runs and cutover. Recurring work includes later upgrades and monitoring of the new servers. Ask any quote to itemize the inventory, the components in scope, the test environment assumptions, the number of retest rounds, and how newly found issues would change scope.

Can the upgrade be quoted before the inventory is done?

Only as a range with stated assumptions. A firm fixed-scope quote depends on knowing what must change, and the inventory is what establishes that. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so a common route is a short discovery phase that produces the inventory and a list of affected rules, queries, scrape jobs and Alertmanager integrations. The remaining work can then be quoted against that list. Ask whether the discovery phase has its own fixed scope and what it delivers, so that you can decide on the main upgrade with real findings in hand.

How long does a Prometheus 2 to 3 upgrade take?

The honest answer depends on the inventory, and no fixed duration applies across environments. The factors that move the timeline are the number of Prometheus servers and scrape targets, how many rule files and dashboards need review, whether query changes need rewriting, how many Alertmanager receivers and clients are involved, and how quickly internal owners can review results. Teams that already run promtool checks and a canary server usually have a shorter path to sign-off. Plan around the release cadence as well: minor releases follow a six-week cycle, and LTS lines are supported for one year. Ask for a timeline with milestones tied to the inventory and sign-off gates.

What does the upgrade need from our internal team?

The work needs five things from your side. First, access to the Prometheus configuration, rule files, web configuration, Alertmanager configuration and dashboards. Second, a named owner for each rule group and dashboard, who can say whether a changed result is a fault or an acceptable difference. Third, a test environment or canary server with representative data, so that query results can be compared before cutover. Fourth, a change window and a rollback decision owner. Fifth, formal sign-off from the owners of the services that rely on the alerts. Confirm these owners early, because delays in review are a common source of schedule slip.

Can our team do the Prometheus 2 to 3 upgrade alone?

A team that already operates Prometheus and knows its rules can do the upgrade internally, provided it has time, a test environment and a clear review process. Useful experience includes PromQL, scrape configuration, exporter behavior, TLS and web configuration, Alertmanager routing and clustering, and backup handling. Local Prometheus storage is single-node and is not clustered or replicated, so the server change touches the database itself. Plan for a rollback limit once storage has changed. A common pattern is to upgrade a pilot server first, then compare query results and alert behavior before moving the rest. Whether to bring in outside help depends on how much of that experience is available in your team.

Should we stay on 2.x or move to LTS 3.13 or the latest minor release?

Choose the line that matches how much upgrade effort your team can absorb on a regular schedule. A minor release receives bug fixes for about six weeks after release, so staying on a non-LTS line means upgrading often. Long-term support releases receive bug fixes for one year. The current LTS line is 3.13, released July 1, 2026 and supported until July 31, 2027, while LTS 3.5 reached end of life on July 31, 2026. The latest minor release on GitHub is v3.15.0, published September 25, 2026. Confirm the support status of your current 2.x build in the release cycle documentation before deciding. Many teams that want predictable fixes prefer LTS, and teams that need newer features accept more frequent upgrades.

What happens to Alertmanager during the change?

Alertmanager runs as a separate process, so it keeps routing alerts while Prometheus is upgraded, but the change still needs checks. Confirm that Prometheus points at every Alertmanager instance directly, because Prometheus should not send through a load balancer. Check that any cluster settings are preserved on the Alertmanager side. The Alertmanager v1 API has been removed, so any client, script or configuration still calling it must move to a supported API version before cutover. Back up silences and inhibition rules, then send a test alert through each receiver end to end. Confirm the exact removal details against the Alertmanager documentation for the version you run.

How DeployOpen scopes and delivers a Prometheus 2 to 3 upgrade

DeployOpen plans, tests and carries out Prometheus 2 to 3 upgrades inside your own infrastructure, starting from a written inventory of your configuration, rules, queries and Alertmanager setup. Each step is documented so your team can review the change, run the upgrade again and keep it running after handover.

How we scope

  • Inventory every Prometheus server, scrape config, exporter, recording rule, alert rule and dashboard query that the upgrade touches.
  • Identify which targets expose metrics without Content-Type headers and which queries rely on regex or le label behavior.
  • Confirm Alertmanager API clients and whether any integration still calls the v1 API before the upgrade is planned.

How we build

  • Stage the move through v2.55 where your configuration requires it, then to the 3.x line in a non-production environment first.
  • Run promtool checks and rule unit tests, then compare query results on a canary server against the current production output.
  • Adjust scrape protocols, UTF-8 metric and label naming, and Alertmanager configuration, recording each change in version-controlled files.

How we hand over

  • Deliver a written upgrade record covering the scope, changes made, test results, known differences in query output and the rollback limits.
  • Walk your platform and monitoring teams through the runbook, including how to rerun the checks for the next release.
  • Document which steps are reversible and which become one-way once storage has changed, so approvals are based on facts.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing for later Prometheus releases are available as a retainer.
  • Confirm with DeployOpen during scoping which release line, support window and retainer terms fit your change calendar.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.