Repository navigation
3.17.0-rc.0 / 2026-11-30
Pre-releasePrometheus v3.17.0-rc.0 is out for testing 🎉
Across 188 PRs and 362 changed files (+41,942 / -20,606 lines, the largest code diff of the last five minor releases), 71 contributors (including 36 first-time contributors) landed major Remote Write 2.0, metadata, PromQL, and performance improvements 💪🏽
Thanks everyone! ❤️
Highlights
- Remote Write 2.0 readiness: experimental
statelessandstateless-stmodes (#20098), per-batch exemplar coalescing onto matching series (#20070), per-field metadata delivery metrics (#20107), and WAL metadata fallback whentype-and-unit-labelsis enabled (#20223). - Metric metadata end to end: experimental
metadata-relabelingvia__type__,__unit__, and__help__(#20101), recording rulemetadatablocks (#20243), automatic recording rule metadata deduction (#20274), and stripping reserved schema labels from alerts (#20407). - PromQL and histograms: bitwise operators
bitand,bitor, andbitxor(#19827), unquoted UTF-8 and dotted names accepted by default (#20169, #20345), querying NHCB as classic histograms behindpromql-native-histograms-as-classic(#18048), andOpenMetricsText2.0.0-rcscrape support (#20091). - Performance: incremental sliding windows in
rate,increase,resets, andchanges(#20353), in-place unary float evaluation (#20355), float-only quantile scratch buffers (#20341), lower-memoryscrapeCacheand slice-based staleness tracking (#20316, #20318, #20319, #20321, #20322), and faster XOR/histogram chunk writes (#20404). - Search API and SD: boolean
search_expr(#20460) andmetadata-default-time-range(#20308), Kubernetes__meta_kubernetes_service_loadbalancer_ips(#20411), AWS MQ SD (#19750), and Azuremachine_state(#17851). - Security and reliability: Go 1.26.10 (#20156),
golang.org/x/netv0.62.0 (#20211),/graphopen-redirect fix (#20055), and TSDB WAL/exemplar replay and OTLP fixes.
Changelog
- [SECURITY] Build: Bump Go to 1.26.10 (CVE-2026-111943). #20156
- [SECURITY] Dependencies: Bump
golang.org/x/netto v0.62.0 (CVE-2026-78661 / GO-2026-6860, CVE-2026-97045 / GO-2026-6866). #20211 - [SECURITY] UI: Fix open redirect in the
/graphcompatibility redirect, where..segments in the query string were resolved into the redirect target. #20055 - [CHANGE] Kubernetes SD:
__meta_kubernetes_service_loadbalancer_ipis again populated only fromspec.loadBalancerIP, reverting the change from 3.15. It is deprecated in favor of__meta_kubernetes_service_loadbalancer_ipsand will be removed in Prometheus 4.0. #20411 - [CHANGE] OTLP: Deprecate the
otlp-deltatocumulativefeature flag in favor ofotlp-native-delta-ingestion. #19950 - [CHANGE] PromQL: Reject an empty data label selector in the experimental
infofunction. Writeinfo(v)instead ofinfo(v, {}). #19820 - [CHANGE] Relabel: Validate static
replacementvalues fortarget_label: __type__against known OpenMetrics metric types. #20101 - [CHANGE] Rules: Strip reserved
__type__and__unit__schema labels fromAlert.Labels,ALERTS, andALERTS_FOR_STATE, including when explicitly set in alerting rule or grouplabels. #20407 - [FEATURE] API: Add
metadata-default-time-rangefeature flag. With it, the series, label names, label values and search endpoints apply a default time range whenstartorendis omitted, and return a warning. #20308 - [FEATURE] API: Add a
search_exprparameter withAND,ORandNOTto the experimental search endpoints. #20460 - [FEATURE] AWS SD: Add MQ role (
mq) for discovering Amazon MQ brokers. #19750 - [FEATURE] Azure SD: Add
__meta_azure_machine_statelabel with the VM power state. It is fetched with one additional subscription-wide request per refresh. #17851 - [FEATURE] Kubernetes SD: Add
__meta_kubernetes_service_loadbalancer_ipswith the comma-separated IPs fromstatus.loadBalancer.ingress. #20411 - [FEATURE] PromQL: Accept unquoted Unicode and dotted names by default;
--enable-feature=promql-unquoted-utf8-namesnow enables unquoted printing only, while quoted printing remains the default for compatibility with earlier 3.x releases. #20169 #20345 - [FEATURE] PromQL: Add bitwise binary operators
bitand,bitor, andbitxor. #19827 - [FEATURE] PromQL: Query native histograms with custom buckets (NHCB) as classic histograms behind
--enable-feature=promql-native-histograms-as-classic. #18048 - [FEATURE] Relabel: Allow reading and modifying metric metadata via
__type__,__unit__, and__help__labels inmetric_relabel_configsbehind--enable-feature=metadata-relabeling. Pre-existing use of these reserved label names as temporary labels inmetric_relabel_configswill interact with this feature when enabled. #20101 - [FEATURE] Remote Write: Add experimental
modeconfiguration field (stateless,stateless-st) for Remote-Write 2.0 mode negotiation and data filtering. #20098 - [FEATURE] Rules: Add
--enable-feature=auto-recording-metadatato automatically deduce series metadata for recording rules. #20274 - [FEATURE] Rules: Add optional
metadataconfiguration block (help,type, andunit) to recording rules and append configured metadata whenmetadata-wal-recordsortype-and-unit-labelsis enabled. #20243 - [FEATURE] UI: Support unquoted Unicode and dotted PromQL names. #20170
- [ENHANCEMENT] API: The experimental search endpoints add a
returnedfield to the success trailer holding the number of results in the response. #20436 - [ENHANCEMENT] Remote write: Add
prometheus_remote_storage_samples_metadata_totalandprometheus_remote_storage_histograms_metadata_totalmetrics, with afieldlabel (type,unit,help), counting samples and histograms sent via Remote Write 2.0 whose series have that metadata field set. #20107 - [ENHANCEMENT] Remote write: Coalesce exemplars onto matching
io.prometheus.write.v2.TimeSeriesentries within a batch across all Remote-Write 2.0 modes (none,stateless, andstateless-st), enabling exemplar delivery instatelessandstateless-st. Unmatched exemplars are still sent detached innonemode instead of dropped. #20070 - [ENHANCEMENT] Scrape: Support
OpenMetricsText2.0.0-rc(application/openmetrics-text;version=2.0.0-rc) when--enable-feature=openmetrics2is enabled. #20091 - [ENHANCEMENT] TSDB, Agent: Write the zero sample for a start timestamp (
created-timestamp-zero-ingestion) with that start timestamp, like the samples that follow. This keeps XOR2 chunks about three times smaller. #20074 - [ENHANCEMENT] TSDB: Add
prometheus_tsdb_duplicate_samples_totaland per-series commit statistics for duplicate-timestamp samples discarded during ingestion. #19711 - [ENHANCEMENT] TSDB: Add
prometheus_tsdb_head_chunk_reads_of_removed_series_totalto count skipped reads of chunks belonging to series evicted from the head byCompactSelectedSeriesorCompactStaleHead. #20204 - [ENHANCEMENT] TSDB: Make postings context-aware to allow cancellation of queries during long postings iterations. #20406
- [ENHANCEMENT] TSDB: Prevent frequent compaction notifications from starving periodic block reloads and mmap. #20161
- [ENHANCEMENT] UI: Emphasize the focused graph series with a thicker line when hovering over the graph or its legend. #20470
- [ENHANCEMENT] promtool:
tsdb analyze --extendednow also reports disk usage by metric name. #16701 - [PERF] Agent: Clear pointer references in pooled appender slices and preallocate
sampleSeries. #20320 - [PERF] PromQL: Avoid per-step float slice shifts in
matrixIterSliceand scan sliding windows incrementally inrate,increase,resets, andchanges. #20353 - [PERF] PromQL: Evaluate simple unary float functions in place on matrices and evaluate
timestampandstart_timestampover vector selectors withoutrangeEval. #20355 - [PERF] PromQL: Reduce allocations in
quantile,quantile_over_timeandmad_over_timewith float-only quantile scratch storage. #20341 - [PERF] PromQL: Reuse scalar argument vectors across range-function steps. #19389
- [PERF] Remote read: Reuse the label buffer when streaming chunked read responses, reducing allocations per series. #20199
- [PERF] Remote write: Free stale series from memory immediately when a lagging WAL watcher restarts from a new checkpoint. #20090
- [PERF] Scrape: Acquire storage appenders only after reading the target HTTP response. #20319
- [PERF] Scrape: Intern metric family metadata in
scrapeCacheusingunique.Handle. #20322 - [PERF] Scrape: Reduce
scrapeCachememory usage by storing series cache entries byuint64hash and value instead ofstringkeys and pointers. #20316 - [PERF] Scrape: Replace
seriesCurandseriesPrevstaleness maps inscrapeCachewith[]uint64metric-hash slices. #20321 - [PERF] Scrape: Reuse existing storage
labels.Labelson cold scrape cache misses across TSDB and Agent mode. #20318 - [PERF] Storage: Reduce allocations when encoding histogram series into chunks. #20225
- [PERF] TSDB: Avoid reordering postings lists when many series are created concurrently. #20009
- [PERF] TSDB: Faster writes to XOR and histogram chunks. #20404
- [PERF] TSDB: Intern metadata strings when decoding WAL metadata records. #20126
- [PERF] TSDB: Skip postings lookups for label values that the search filter rejects, when
/api/v1/search/label_valueshas bothsearch[]andmatch[]. #20234 - [PERF] TSDB: Skip the ID-index lookup for zero-reference AppenderV2 samples. #20186
- [BUGFIX] AWS SD: Emit ElastiCache serverless cache usage limit and reader endpoint labels under their documented names. #20185
- [BUGFIX] Agent: Fix a deadlock on shutdown when it coincides with a WAL truncation. #20301
- [BUGFIX] Agent: Preserve metadata for stale samples when metadata WAL records are enabled. #20196
- [BUGFIX] Agent: Stop re-sending samples from a failed commit and growing memory while WAL writes fail. #20105
- [BUGFIX] Discovery: Keep
prometheus_sd_refresh_*metrics when a reload changes a scrape job that still uses them, and properly removeprometheus_sd_refresh_*metrics ofaws_sdjobs removed on reload. #19878 - [BUGFIX] Federation: Fix federated NHCBs from PromQL results occasionally being rejected by the receiver with a negative
+Infbucket due to floating point rounding. #20307 - [BUGFIX] File SD: Prevent a deadlock on Windows when a watched directory receives a burst of filesystem events during refresh. #20102
- [BUGFIX] Hetzner SD: Do not set
<nil>as the address and public IP labels of hcloud servers without a public IP. #20544 - [BUGFIX] Histograms: Preserve integer cumulative bucket counts when converting native histograms with custom buckets to classic histograms. #20330
- [BUGFIX] Linode SD: Fix
__meta_linode_specs_transfer_bytesreporting values 1,024 times too small. #20206 - [BUGFIX] OTLP: Copy the zero threshold of exponential histograms when converting them to native histograms, instead of always using
1e-128. This avoids a zero bucket that overlaps populated buckets. #20400 - [BUGFIX] OTLP: Do not abort an entire OTLP payload ingestion if one metric has an unsupported temporality, such as delta without native delta ingestion. Regression in v3.7.0. #20536
- [BUGFIX] OTLP: Do not skip the
target_infometric whenkeep_identifying_resource_attributesis enabled and the resource only has identifying attributes. #20401 - [BUGFIX] OTLP: Return an error when committing ingested samples fails, so senders retry instead of receiving a false 200 OK. #20351
- [BUGFIX] OVHcloud SD: Discover VPS servers that have a keyboard layout (
keymap) set. They were skipped with a "Could not get details" warning. #20394 - [BUGFIX] OpenMetrics parser: Unescape exemplar label values instead of storing them with escape sequences intact. #20302
- [BUGFIX] PromQL: Align duration
min_ofandmax_ofNaN handling with scalar functions. #20309 - [BUGFIX] PromQL: Experimental
max_of()andmin_of()functions only returnNaNif both arguments areNaN, consistent with themaxandminaggregators. #20265 - [BUGFIX] PromQL: Fix missing samples and false "conflicting counter resets" warnings in
histogram_count(),histogram_sum()andhistogram_avg()of histograms added or subtracted with+or-. #20099 - [BUGFIX] PromQL: Preserve equal subnormal samples during quantile interpolation, including the median used by
mad_over_time. #20180 - [BUGFIX] PromQL: Preserve milliseconds when printing duration expressions such as
(1s1ms), which recording and alerting rules print and re-parse. #20392 - [BUGFIX] PromQL: Put a signed left operand of
^in parentheses when printing a query, so thatinf ^ 2no longer prints as+Inf ^ 2. #19821 - [BUGFIX] PromQL: Stop native-histogram-to-classic conversion between samples when a query is cancelled or times out. #20288
- [BUGFIX] Relabeling: Fix quoted
nulland~regexps corrupting the default regexp. #20295 - [BUGFIX] Remote Write 2.0: Fall back to cached WAL metadata for metric type and unit when
--enable-feature=type-and-unit-labelsis enabled and__type__or__unit__labels are empty. #20223 - [BUGFIX] Remote write: Fix a panic on config reload after an earlier reload failed. #20106
- [BUGFIX] Rules: Do not log a "multiple document" warning for a rule file whose only document has a YAML syntax error. #20250
- [BUGFIX] Scrape: Fix a possible panic in the experimental start timestamp synthesis when a target exposes a native histogram with an invalid bucket layout. #20109
- [BUGFIX] Scrape: Parse a protobuf float native histogram whose only observations are in a zero bucket with a zero threshold of 0 as a native histogram, not a classic one. #19868
- [BUGFIX] Scrape: Unescape label names and values of OpenMetrics exemplars. #20299
- [BUGFIX] Scrape: Update target metadata cache using post-relabel metric names and exclude metrics dropped by
metric_relabel_configs. #20103 - [BUGFIX] Search API: Honor request cancellation during metric name and label searches, and report deadline errors as timeouts. #19991
- [BUGFIX] TSDB: Avoid a panic when merging tombstones with intervals ending at the maximum timestamp. #19919
- [BUGFIX] TSDB: Close the last head chunk file when reading its header fails during startup repair. #20002
- [BUGFIX] TSDB: Do not drop exemplars or report unknown series references when a full-range tombstone is replayed before its series' exemplars are processed. #20469
- [BUGFIX] TSDB: Don't store start timestamps in chunks when the
st-storagefeature is disabled. With XOR2 or ST-capable histogram chunks, they were stored until the next WAL replay. #20073 - [BUGFIX] TSDB: Ensure streamed remote reads respect head isolation for in-order samples. #20184
- [BUGFIX] TSDB: Keep head chunk file numbering monotonic across truncation, so out-of-order samples are not lost after a restart on a low-volume server. #20149
- [BUGFIX] TSDB: Log compaction cancellation at info level instead of error during clean shutdown. #20520
- [BUGFIX] TSDB: Preserve WAL series declarations needed for sample replay after stale or selected series compaction with exemplars. #20467
- [BUGFIX] TSDB: Prevent queries from failing with "not found" errors when
CompactSelectedSeriesorCompactStaleHeadremoves series from the head during a query. #20204 - [BUGFIX] TSDB: Prevent sample loss during WAL replay when a series is recreated during eviction. #20415
- [BUGFIX] TSDB: Prevent sample loss on WAL replay when concurrent appenders use newly created series. #20565
- [BUGFIX] TSDB: Retry deleting an empty head chunk file on Windows when the OS briefly reports a sharing violation. #18543
- [BUGFIX] TSDB: Stop counting in-order histogram exact duplicates as out-of-order sample rejections. #19711
- [BUGFIX] TSDB: Validate appends correctly when recovery leaves a series with only memory-mapped chunks, so out-of-order samples are no longer silently dropped and conflicting values are rejected. #19722
- [BUGFIX] UI: Accept trailing-dot floats, uppercase and underscored hexadecimal literals, and case-insensitive duration keywords in the query editor. #20456
- [BUGFIX] UI: Escape line breaks in label values and string literals when building PromQL, so the tree view and the metrics explorer no longer produce invalid queries for strings containing newlines. #20602
- [BUGFIX] UI: Escape line breaks in label values inserted by autocompletion, so the resulting query stays valid. #20610
- [BUGFIX] UI: Fix crashes and invalid chart dimensions when displaying histograms containing only a zero bucket. #20203
- [BUGFIX] UI: Fix false type errors in the PromQL editor for
pi(), and align thehistogram_quantilesargument limit and thecosh/sinhnames with the PromQL parser. #20499 - [BUGFIX] UI: Fix syntax highlighting of several PromQL functions,
count_valuesand thefillmodifiers in the query editor. #20488 - [BUGFIX] UI: Show durations that round up to a full minute or hour correctly, e.g. "1m" instead of "60s" and "1h" instead of "59m 60s". #20607
- [BUGFIX] promtool: Send the correct metadata type for gauge histograms with
push metrics. #20352 - [BUGFIX] promtool:
tsdb dumpandtsdb dump-openmetricsnow report errors reading a series' samples, such as a corrupt chunk, instead of stopping early and exiting successfully. #20251
Contributors
Thanks to all 71 contributors who made this release possible:
@0z5a, @56quarters, @aamoghS, @adityacosmos24, @aknuds1, @ArthurSens, @AynSiddiqui, @ayushbuilds-code, @BahaaMattar, @bboreham, @bwplotka, @CJstate, @dashpole, @daverigby, @davidquan1, @divyanshAgarwal123, @dmatth1, @donaldraph, @duricanikolic, @electron0zero, @fallintoplace, @FayezBast, @g4lb, @gauvainw, @git-jxj, @guidonguido, @h8y3, @hnrydvd, @Huang-404-Q, @inanna-malick, @ismailtrm, @jooola, @juliusmh, @juliusv, @kamothi, @karpovantonme, @kgeckhart, @krajorama, @locker95, @machine424, @MasatoNagashima, @matt-gp, @MaxFreedomPollard, @pedro-stanaka, @PrimeFold, @r0h1tb, @Ramya-9353, @rawsun007, @rbizos, @rida-ghreizy, @Rohilalala, @roidelapluie, @roth-wine, @ruziba3vich, @senutpal, @shanejonas, @shilohlee98, @SoloJacobs, @subhammahanty235, @Sun-Wukhan, @SuperQ, @tcp13equals2, @tejasvasingh2004, @vicwicker, @vigohan95, @waltherlee, @wbollock, @xixi-box, @ywwg, @ZainnQureshii, @zenador
Welcome to our 36 first-time contributors:
@0z5a, @adityacosmos24, @AynSiddiqui, @ayushbuilds-code, @BahaaMattar, @CJstate, @daverigby, @davidquan1, @divyanshAgarwal123, @donaldraph, @FayezBast, @g4lb, @gauvainw, @guidonguido, @h8y3, @hnrydvd, @Huang-404-Q, @ismailtrm, @karpovantonme, @MasatoNagashima, @MaxFreedomPollard, @PrimeFold, @rawsun007, @rida-ghreizy, @Rohilalala, @roth-wine, @ruziba3vich, @senutpal, @shanejonas, @subhammahanty235, @Sun-Wukhan, @tejasvasingh2004, @vigohan95, @waltherlee, @xixi-box, @ZainnQureshii
Full Changelog: v3.16.0...v3.17.0-rc.0