Prometheus 3.17 RC: Test Remote Write Before You Upgrade

Prometheus 3.17.0-rc.0 went out on December 1, 2026 as a pre-release. The release notes call it big: "Across 188 PRs and 362 changed files (+41,942 / -20,606 lines, the largest code diff of the last five minor releases)". Much of the changelog is PromQL, TSDB and scrape work. Remote Write gets six, but if you ship metrics to Mimir, Thanos, VictoriaMetrics or a hosted backend, those six matter most. A broken remote-write path fails quietly: local dashboards look fine while the central store, and every alert that reads it, goes blind.
This post lists what changed, what is breaking, and a shadow-receiver test plan with the signals to compare.
What Changed in Remote Write
From the changelog and the PRs behind it:
| Change | Type | Who is affected |
|---|---|---|
New experimental mode field: none, stateless, stateless-st (#20098) |
Additive, opt-in | Only configs that set it |
prometheus_remote_storage_samples_metadata_total and prometheus_remote_storage_histograms_metadata_total, label field = type, unit, help (#20107) |
New metrics | Remote Write 2.0 senders |
Exemplars coalesced onto matching v2 TimeSeries in a batch (#20070) |
Behavior change | RW 2.0 with exemplars |
Fall back to cached WAL metadata for type and unit when __type__ or __unit__ is empty (#20223) |
Bug fix | RW 2.0 with type-and-unit-labels |
| No panic on reload after an earlier reload failed (#20106) | Bug fix | Everyone who reloads config |
| Free stale series when a lagging WAL watcher restarts from a new checkpoint (#20090) | Memory fix | Senders that fall behind |
Breaking or not? For Remote Write, nothing here is breaking by default. mode defaults to none, and protobuf_message still defaults to prometheus.WriteRequest (v1). No remote-write flag is deprecated or removed. The deprecation in this RC is on the OTLP side: the otlp-deltatocumulative feature flag is deprecated "in favor of otlp-native-delta-ingestion". If you push OTLP into Prometheus, check that flag too.
The mode Field
The mode field implements the stateless modes added to the Remote-Write 2.0 spec in version 2.0-rc.6 (docs PR #3147). The spec itself is still marked "Experimental". The two modes:
stateless: exemplars must ride on a series that has a sample or histogram, histograms must be sent as nativehistograms(for example native histograms with custom buckets), so Prometheus drops classic_bucket,_sumand_countfloat series, and every series must carry a metric type.stateless-st: everything instateless, plus a start timestamp on counter, histogram and summary samples.
The mode is appended to the Content-Type header, so the receiver knows what it gets. Prometheus checks the setup at config load. The stateless modes need protobuf_message: io.prometheus.write.v2.Request and one of --enable-feature=metadata-wal-records or --enable-feature=type-and-unit-labels. stateless-st also needs --enable-feature=st-storage. In both modes send_native_histograms is forced to true, and setting it to false is an error.
That is the trap: mode: stateless next to an old send_native_histograms: false line is rejected at load. Never try the new mode for the first time in a production rollout.
Exemplars in RW 2.0
Before #20070, an exemplar could go out as its own exemplar-only series entry. Now Prometheus attaches it to the matching series in the same batch. In none mode, an exemplar with no match is still sent alone. In the stateless modes it is dropped with reason="detached_exemplar_not_allowed". Coalescing works per shard batch, so attachment is best-effort. If your trace links depend on exemplars, count them before and after.
Run the RC Against a Shadow Receiver
Do not point the RC at production storage first. Run it next to your current server, scraping the same targets (or a slice of them if scrape load matters), and send its output to a receiver you can throw away. The image is published as prom/prometheus:v3.17.0-rc.0.
1. Start a sink. A staging tenant on your real backend is best, because it tests the real receiver. If you do not have one, a plain Prometheus works as a receiver:
docker network create rw-test
docker run -d --name rw-sink --network rw-test -p 9092:9090 prom/prometheus:v3.17.0-rc.0 \
--config.file=/etc/prometheus/prometheus.yml \
--web.enable-remote-write-receiver \
--web.remote-write-receiver.accepted-protobuf-messages=io.prometheus.write.v2.Request
Set the accepted message to the one you are testing. The default is prometheus.WriteRequest, so leave this flag out for the first v1 run below.
2. Copy the production config into shadow.yml and change only the remote-write target and an external label:
global:
external_labels:
shadow: rc-3-17
remote_write:
- name: shadow
url: http://rw-sink:9090/api/v1/write
protobuf_message: prometheus.WriteRequest # match production first
queue_config:
# copy your production values unchanged
max_shards: 50
capacity: 10000
max_samples_per_send: 2000
Keep queue_config identical to production. A shadow run with different tuning tells you nothing.
3. Start the RC with the same feature flags as production, plus --web.enable-lifecycle so you can trigger reloads:
docker run -d --name prom-rc --network rw-test -p 9091:9090 -v "$PWD/shadow.yml:/etc/prometheus/prometheus.yml" \
prom/prometheus:v3.17.0-rc.0 \
--config.file=/etc/prometheus/prometheus.yml --web.enable-lifecycle
Run it for at least a day, so you cover a WAL checkpoint and your daily traffic peak. Only then switch protobuf_message to v2 and, if you want it, try a mode.
Four Failure Drills
Steady state is the easy case. These drills test the paths the RC actually changed.
Bad reload, then good reload. Break the config on purpose (point tls_config.ca_file at a missing file), curl -X POST localhost:9091/-/reload, fix it, reload again. Before #20106, the failed reload left old queues running but unmanaged, and the next good reload panicked. The PR also notes that the failed reload stored the new external labels, so later reloads kept sending stale ones. On the RC, Prometheus should stay up and the shadow label should be what you expect.
Receiver outage. Stop rw-sink for 15 minutes, then start it again. Watch the lag climb and drain. The remote write tuning guide sets the limit: "Failures will be retried without loss of data unless the remote endpoint remains down for more than 2 hours." Note how long the backlog takes to drain. That number is your real recovery budget.
Lagging watcher memory. The outage drill also exercises #20090. Compare process_resident_memory_bytes on the RC and on production during and after the outage. Memory should come back down after the queue catches up.
Receiver that does not speak v2. When you switch to io.prometheus.write.v2.Request, point the RC once at a receiver that only accepts v1. The spec says a receiver "MUST return 415 HTTP Unsupported Media Type" for a content type it does not support, and a v2 receiver must return X-Prometheus-Remote-Write-Samples-Written. The spec says a sender should treat a 2xx (other than 202 Accepted) with no -Written headers as a 415, a common issue with 1.0 receivers that do not check the content type. Test the full path through every proxy, not just the backend.
Signals to Watch
Compare the RC with your current server over the same window. The first three are simplified from the expressions in Prometheus' own mixin alerts:
| Signal | PromQL | Mixin threshold |
|---|---|---|
| Send lag | max_over_time(prometheus_remote_storage_queue_highest_timestamp_seconds[5m]) - max_over_time(prometheus_remote_storage_queue_highest_sent_timestamp_seconds[5m]) |
> 120 for 15m |
| Failed samples | rate(prometheus_remote_storage_samples_failed_total[5m]) / rate(prometheus_remote_storage_samples_total[5m]) * 100 |
> 1 (percent) for 15m |
| Shards starved | max_over_time(prometheus_remote_storage_shards_desired[5m]) > max_over_time(prometheus_remote_storage_shards_max[5m]) |
for 15m |
| Drops by reason | sum by (reason) (rate(prometheus_remote_storage_samples_dropped_total[5m])) |
Any new reason |
| Exemplar drops | sum by (reason) (rate(prometheus_remote_storage_exemplars_dropped_total[5m])) |
detached_exemplar_not_allowed |
| Backlog | prometheus_remote_storage_samples_pending |
Should drain after outages |
| RW2 metadata coverage | rate(prometheus_remote_storage_samples_metadata_total[5m]) by field |
Compare with samples_total |
Two notes. prometheus_remote_storage_highest_timestamp_in_seconds still exists, but its help text says it is deprecated in favor of queue_highest_timestamp_seconds, so update old dashboards. And the new metadata counters count per send attempt, so retries inflate them. Read them as a ratio, not an absolute.
Non-Remote-Write Items That Still Change Your Data
A few other 3.17 entries can change what reaches remote storage:
- Reserved
__type__and__unit__labels are now stripped from alert labels. - Static
__type__replacement values in relabeling are now validated. info()with an empty selector is now rejected: writeinfo(v), notinfo(v, {}).__meta_kubernetes_service_loadbalancer_ipis deprecated and now comes fromspec.loadBalancerIPonly. Relabel rules that copy it into a label can change series identity.
Go or No-Go Checklist
- RC ran for 24 hours or more with production
queue_configand feature flags. - Lag, failure and shard signals match the current server.
- No new
reasonvalue in the dropped-samples counters. - Bad-then-good reload kept the process up with correct external labels.
- Outage drill drained, and memory returned to baseline.
- If moving to RW 2.0: every hop answers 415 or
-Writtenheaders, never a bare 2xx. -
modestaysnoneunless the receiver documents stateless support.
Let an Agent Watch the Pipe
The signals above are also the inputs an incident agent needs when it decides whether a missing graph is an outage or a metrics gap. Akmatori receives alerts through the Alertmanager integration, so the mixin alerts in the table can open an investigation directly. With the VictoriaMetrics or Grafana connectors, the agent can run the same PromQL and compare sender and receiver. For another case where Prometheus fails in a way dashboards hide, see our post on the Prometheus full disk crash.
Conclusion
The 3.17 RC does not break Remote Write by default. It fixes a reload panic, cuts memory after lag, and adds opt-in stateless modes for RW 2.0. That is exactly why to test it now: the fixes change failure paths, and failure paths only show up in drills. Run the RC against a shadow receiver, break it on purpose, and compare the numbers before 3.17.0 ships.
If your team wants AI-assisted incident workflows on your own infrastructure, Akmatori helps SRE teams investigate alerts, coordinate response, and catch metric pipeline gaps before they blind your alerting. Powered by Gcore for global infrastructure reliability.
