Prometheus Remote-Write 2.0 protocol

Remote-Write 2.0 is a newer Protobuf message format for sending Prometheus samples to long-term storage. This page explains what it changes, its experimental status, and how to enable a receiver that accepts both message types.

On this page

Prometheus Remote-Write 2.0 protocol: what it is and when teams need it

Remote-Write 2.0 is a new Protobuf-based message format for Prometheus remote write, and it is currently marked experimental at version 2.0-rc.5, dated May 2024. You need it to think about when your estate has outgrown a single Prometheus server and you want samples held in external long-term storage. A Prometheus server keeps its local time series database on one node. The storage documentation states that local storage is not clustered or replicated and should be run like any other single-node database, so losing that server means losing its local history unless the data has already left. Remote write is the mechanism that sends samples out of the server to a receiver, which makes the protocol the boundary where durability and long-term retention begin.

Version 2.0 adds a new Protobuf message with features for more use cases, along with performance and cost savings, and it keeps the protocol stateless, with no communication between messages. For a team, that means each request can be understood on its own, which simplifies retries and debugging at the receiver. The specification's release-candidate status matters for planning: no major changes are expected, but compatibility may still break based on early adopter feedback. Confirm with your storage vendor or project which message formats their receiver supports before you commit a production sender to 2.0. Ask whether they accept both message types during a transition, since that determines whether you can roll out senders gradually.

Before enabling anything, decide whether your receiver is ready for a protocol that is still changing. A test sender and receiver pair, run against representative sample volumes and a planned rollback to the existing format, will show whether the receiver handles both formats correctly. Record which protocol version each sender uses so that an upgrade of either side can be traced during an incident. Teams with compliance obligations should also document this choice as part of their change records, because an experimental interface on a data path is a point auditors and security reviewers tend to ask about.

What experimental release-candidate status means for production

The Remote-Write 2.0 specification is a release candidate, so the maintainers expect no major changes but still allow compatibility to break based on early adopter feedback. The cards below are the decisions and checks that follow from that status, and they are meant to be applied together before any production sender or receiver is switched over.

Pin versions on both ends

Record the exact Prometheus version on every sender and the exact receiver build, and change them only through a reviewed upgrade. Because the specification is still at a release candidate, a minor change on either side can alter what is accepted. Treat the pinned pair as one unit in your change records, and note which release-candidate revision of the specification each side was tested against.

Remote-Write 2.0 spec

Prove it on a parallel pipeline

Run a second sender and receiver pair alongside production, pointed at a test copy of your long-term storage, and feed it a representative share of series. Compare sample counts, label sets, staleness and query results against the 1.x path for the same window. Keep this pipeline running through at least one full upgrade cycle before you move production traffic.

Keep the 1.x path as fallback

Leave the existing prometheus.WriteRequest path configured and working on every receiver until the 2.0 path has run cleanly in production. The receiver flag --web.remote-write-receiver.accepted-protobuf-messages can accept both message types, and the default is the 1.x message only. Rolling back then means changing a sender setting, not rebuilding the pipeline.

Prometheus command-line flags

Track specification changes

Subscribe to changes in the specification and the Prometheus release notes, and review each change against your sender and receiver configuration before upgrading. Early adopter feedback is what drives remaining compatibility changes, so a field or behavior that works today may move. Assign one owner to read each release and record which changes affect your deployment.

Confirm receiver support with your vendor

Ask your long-term storage vendor or project, in writing, which Remote-Write 2.0 message types it accepts, which specification revision it targets, and how it reports rejected messages. Do not assume support from a general statement that the protocol exists. Ask for the test evidence behind the answer and the version it applies to, and repeat the question at every storage upgrade.

How a Prometheus receiver accepts both message types

The default setting accepts only the original prometheus.WriteRequest message. You turn on the receiver with the --web.enable-remote-write-receiver flag, and the --web.remote-write-receiver.accepted-protobuf-messages flag stays at its default. This is the right starting point when every sender in your estate still speaks the original protocol and you need no change to what is already flowing in. It leaves the existing pipeline untouched while you evaluate the newer message.

  • Flag behavior: Enabling the receiver without changing the accepted-messages flag keeps the original message as the only accepted type.
  • Existing senders: Agents and servers already configured for remote write keep working without changes on either side.
  • Limit: Senders that emit only the v2 message will be rejected until you add it to the accepted list.
  • Lowest change risk: This option is the baseline to compare against when you test the newer message in a non-production receiver.
  • Migration fit: Use it while the sender fleet is still on the original protocol.

Before you rely on this setting, confirm the exact receiver behavior for rejected messages in your Prometheus version against the command-line flags reference.

Remote-Write 2.0 configuration options and when each fits

This table compares the receiver flags, the accepted message types and the sender-side choices for Remote-Write 2.0. Read each row against your storage backend: the receiver setting controls what your Prometheus server will accept, while the sender setting controls what your server emits. The main takeaway is that the default receiver setting accepts only 1.x messages, so 2.0 traffic needs an explicit opt-in and confirmed support at the far end.

SettingWhat it doesWhen it fitsWhat to confirm
--web.enable-remote-write-receiverStarts the Prometheus server as a remote write endpoint that accepts incoming writesA central Prometheus or test server that receives samples from other sendersThe flag is off by default, so confirm it is set on the receiving server only
--web.remote-write-receiver.accepted-protobuf-messages set to prometheus.WriteRequest (default)Accepts only the 1.x Protobuf message typeProduction receivers where senders still emit 1.x messages and 2.0 support is not yet confirmedWhich sender versions in your estate still emit 1.x messages
--web.remote-write-receiver.accepted-protobuf-messages set to io.prometheus.write.v2.RequestAccepts only the 2.0 Protobuf message typeIsolated test receivers where every sender is known to emit 2.0 messagesEvery upstream sender can emit 2.0, since 1.x traffic will be rejected
--web.remote-write-receiver.accepted-protobuf-messages set to bothAccepts 1.x and 2.0 messages on the same endpointMigration windows where senders move to 2.0 at different timesDuplicate or mismatched metadata handling for each message type in your test runs
Sender remote write set to 1.x messagesKeeps the existing message format and stays within the stable pathEstates where long-term storage has not confirmed 2.0 support, which is the safe defaultThe storage vendor's supported protocol version and the sender release you run
Sender remote write set to 2.0 messagesUses the new Protobuf message with additional features and performance and cost savingsPilots against a receiver that has confirmed 2.0 support and a tested rollback pathThe specification is experimental at version 2.0-rc.5, so compatibility may still break
Receiver and sender version pairingDetermines whether a 2.0 message is parsed or rejectedPlanning a staged rollout that moves receivers before sendersRelease notes for each Prometheus and storage version in the chain
Rollback pathReturns senders to 1.x messages if the receiver rejects or mishandles 2.0 trafficAny production change, kept ready before enabling 2.0 sendersWhether your deployment tooling can revert the sender flag quickly and test it

How to enable Remote-Write 2.0 against long-term storage

This sequence moves Remote-Write 2.0 from a lab receiver to production by checking backend support, proving sample delivery and query parity on a copy, and keeping a rollback path before cutover.

  1. Confirm the storage backend accepts the message type

    Your storage platform team or the vendor's documentation confirms whether the long-term store accepts the Protobuf message types you plan to send, namely prometheus.WriteRequest (the default) or io.prometheus.write.v2.Request. Ask the vendor directly whether Remote-Write 2.0 is supported, since the specification is still a release candidate and compatibility may change with early adopter feedback. Record the answer and the version you tested against. This step is done when the vendor or your own test confirms accepted message types in writing, and you have noted that the specification is experimental.

  2. Start a test receiver with the enable flag

    On a non-production Prometheus server acting as a receiver, start the process with --web.enable-remote-write-receiver so it accepts remote write requests. Keep the default accepted message type for this first run so you isolate the flag itself. Confirm the endpoint responds on the expected port and that the process logs no startup errors. This step is done when a test sender can reach the receiver over the network path you will use in production, and the receiver stays up under a short test load.

  3. Accept both message types during migration

    Restart the test receiver with --web.remote-write-receiver.accepted-protobuf-messages set to both prometheus.WriteRequest and io.prometheus.write.v2.Request, so it handles senders that still use the 1.0 format while you test 2.0 senders. Keep the setting at its default until this step, because the default accepts only the 1.0 message type. This step is done when the receiver's configuration shows both types enabled and the 1.0 sender that already works continues to deliver samples without errors.

  4. Configure a sender on a non-production copy

    Point a copy of a production Prometheus configuration at the test receiver, with its remote write settings pointed at the test endpoint and set to send the 2.0 message format through the sender's own configuration. Use a copy so recording rules, alerting rules and scrape jobs in production are not affected. Check the sender's logs and its remote write metrics for failed or retried sends. This step is done when the sender reports successful sends and the receiver logs no rejected messages.

  5. Verify sample arrival and query parity

    Compare series counts and sample values for a selected set of metrics between the production server and the test storage, using the same PromQL queries on both. Include a histogram, a counter with rate applied, and a recording rule output, since these exercise different parts of the data. Check that timestamps line up and that labels are preserved. This step is done when the selected queries return matching results over a window you choose, and any differences are explained and resolved before you proceed.

  6. Cut over and keep a rollback path

    Switch production remote write to the new endpoint and message type in a planned change window, keeping the previous remote write configuration in version control so it can be restored quickly. Keep the old receiver or storage target available until the new path has run long enough for your team to trust it. Watch remote write failure and backlog metrics on the sender throughout. This step is done when production samples arrive at the new target, the rollback configuration has been tested in a non-production setting, and the owner signs off on the change record.

How samples flow from Prometheus to long-term storage

Samples start at scrape targets, which Prometheus pulls over HTTP and stores in its local TSDB. The remote write sender then forwards them to a receiver endpoint in the storage network, which must be started with the remote write receiver enabled and told which message types to accept. The dashed boundary marks where the monitoring network hands data to storage, so TLS, authentication and network rules belong at that crossing. Queries travel the other way, either through Prometheus or a query layer that reads the long-term store.

Sample path from scrape targets to long-term storage, with the trust boundary between networks.

Securing the remote write path

A Remote-Write 2.0 receiver accepts samples from every sender that can reach it, so the transport, the authentication and the admin surface all need deliberate settings. The cards below cover the controls to set before any sender is pointed at the endpoint, and the checks to run afterward.

Encrypt the transport with TLS

Serve the receiver endpoint over HTTPS so samples and any credentials are not sent in the clear. Prometheus supports TLS with a minimum of TLS 1.2, so confirm the receiver and each sender are configured for that floor and that certificates are issued from a chain your senders trust. Plan certificate renewal as part of the rollout, because an expired certificate stops every sender at once.

Security model docs

Require client certificates for senders

Client certificate authentication lets the receiver accept samples only from senders that present a certificate it signed. This suits a fixed set of central or edge Prometheus servers, and it keeps the identity of each sender tied to its certificate. Record which certificate belongs to which sender, and define how a compromised certificate is revoked and replaced.

Use basic auth only over TLS

HTTP basic authentication with bcrypt-hashed passwords is a workable option when client certificates are not practical. Without TLS, however, the credentials travel in cleartext on every request, so basic auth should never be enabled on a plain HTTP receiver. Confirm that the password hashes are bcrypt and that the sender's password is stored in a secrets mechanism, not in a file readable by other users.

Keep admin and lifecycle endpoints off

The receiver process should run with --web.enable-admin-api and --web.enable-lifecycle left disabled. The first exposes destructive operations, and the second exposes reload and shutdown endpoints that anyone with HTTP access could call. Check the running flags and the rendered service unit after every upgrade or configuration change, since a copied startup command can re-enable them.

Restrict who can reach the endpoint

Place the receiver on a private network segment and allow inbound connections only from the sending Prometheus servers, using firewall rules, security groups or a network policy. Keep the receiver's web UI and query endpoints off any path that other users can reach. Test the restriction from an address that should be blocked, because a receiver that accepts writes from any host is an open ingestion point for anyone on the network.

Verify the path before enabling senders

Before pointing production senders at the receiver, confirm that a request without valid credentials or certificates is rejected, that a plain HTTP request is refused where TLS is required, and that the admin and lifecycle endpoints return errors. Repeat these checks after each upgrade. Keep a short written record of the results so the security team can review the same controls at each assessment.

Questions buyers ask about Remote-Write 2.0

Is Prometheus Remote-Write 2.0 safe to run in production today?

Treat it as experimental for now. The Remote-Write 2.0 specification is marked experimental and sits at version 2.0-rc.5, dated May 2024. The specification describes it as a release candidate where no major changes are expected, but compatibility may still break based on early adopter feedback. A production rollout therefore needs a tested rollback path, a pinned sender and receiver version, and a plan for what happens if a field or message type changes before the final release. Ask your partner or your own team to confirm which Prometheus release and storage backend you will run, and check each one's documentation for its current support of the 2.0 message.

What skills does our team need to run Remote-Write 2.0?

Your team needs working knowledge of the Prometheus remote write path on both ends: the sender configuration in Prometheus and the receiver that stores the samples. On the receiver side, a Prometheus server started with the remote write receiver flag accepts the protocol, and the accepted message types are selected with a flag named for the protobuf messages. The default accepts only the original message type, so enabling the 2.0 message is an explicit configuration step. Engineers also need to read the specification, monitor ingestion errors and understand how the chosen long-term storage system handles the new fields.

How long does a Remote-Write 2.0 pilot take, and what drives that?

Duration depends on the number of senders, the storage system at the receiving end, and how much of your estate you want to test. A narrow pilot sends one non-critical job or one cluster to a receiver with the 2.0 message enabled and compares stored series, query results and error rates with the existing path. A broader pilot adds dashboards, recording rules and alerts that depend on the data. The main drivers are how many senders must change, whether the receiver is a test copy or live storage, and how long your team needs to review query parity. Ask any partner for a written pilot scope that names these items before agreeing a timeline.

What would a partner scope for a Remote-Write 2.0 engagement?

A partner would normally scope the current metrics path, the target receiver and its storage, the senders that will change, the flags and configuration to set on each side, and the verification steps. Typical work items include a compatibility check against the specification version you will run, a test receiver, a comparison of query results before and after, a rollback plan, and documentation for your operations team. Deliverables and timelines are agreed in writing before work starts, so ask for each item to be listed with its acceptance check.

What drives the cost of a Remote-Write 2.0 engagement?

Cost is driven by scope, not by the protocol alone. The main components are the people who plan and build the change, the test and staging environments that must hold the receiver and the senders, the storage capacity that carries the extra test data, and the ongoing effort your own team spends operating the result. One-time costs include design, configuration and verification. Recurring costs include storage, the time to track each Prometheus release, and any support retainer you choose. Prometheus itself is licensed under Apache-2.0 and has no paid edition, so license cost is not a driver. Ask for a quote that separates one-time work from recurring items and lists the number of senders and receivers in scope.

Can our team migrate to Remote-Write 2.0 without a partner?

Yes, a capable team can do it, provided it has the time, a test environment and an owner for the verification work. The change is mostly configuration on senders and receivers, plus checks that stored data and queries still match. The risk lies in the experimental status, so a self-run migration should keep the old path running in parallel, compare results over a full working cycle, and document a rollback. If your team lacks experience with remote write or with the long-term store, a short external review of the design can reduce the risk of errors that are hard to spot later.

When should we enable Remote-Write 2.0 against long-term storage?

Enable it when your long-term storage system supports the 2.0 message, your senders and receiver run pinned versions you have tested, and you have a rollback path. Confirm support with the storage vendor or project before you change any sender, because the receiver must accept the message type that the sender sends. Do not enable it for a critical alerting path until a pilot has compared query results and error rates over time. For most teams, a dual-write period with the existing protocol is the safer way to build confidence.

How DeployOpen scopes and delivers Remote-Write 2.0 work

DeployOpen scopes a Remote-Write 2.0 path as a fixed piece of work with a written scope agreed before anything is configured. The scope starts with the senders (which Prometheus servers or agents will push, and to which endpoint), the receiver (the long-term storage system and whether it can accept the io.prometheus.write.v2.Request message), and the network path between them inside your data centers, cloud accounts or air-gapped segment. Because the protocol is still a release candidate, the scope also records which specification version each component is built against and which compatibility checks will run before and after go-live. Confirm with your storage vendor and your own platform team whether they support the 2.0 message at all, since that answer determines whether the work is a configuration change or a larger receiver project.

Delivery covers the receiver-side flags, such as --web.enable-remote-write-receiver and --web.remote-write-receiver.accepted-protobuf-messages, sender remote_write settings, TLS and authentication on the write endpoint, and test traffic that proves both message types land correctly. The written scope should list the deliverables, such as tested configuration as code, a runbook for rollback to the default prometheus.WriteRequest message, and a verification report with sample counts compared across both paths. Cost in a quote follows from the number of senders, the number of receiver environments, and how many compatibility rounds the scope allows. Ask each proposal for those line items separately, and ask what is one-time setup and what is a recurring retainer.

After go-live, ongoing support is available as a retainer. It typically covers monitoring the write path, reviewing specification updates as the protocol moves past release candidate status, retesting after Prometheus upgrades, and handling receiver changes. Because compatibility may still break based on early adopter feedback, a retainer that includes scheduled retesting is worth more than a one-off hand-off. Ask whether the retainer includes retesting when you upgrade Prometheus, and who owns the rollback decision if a receiver rejects the new message type.

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.