Skip to content

3.17.0-rc.0 / 2026-11-30

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:55
Immutable release. Only release title and notes can be modified.
v3.17.0-rc.0
a94b59f

Prometheus 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 stateless and stateless-st modes (#20098), per-batch exemplar coalescing onto matching series (#20070), per-field metadata delivery metrics (#20107), and WAL metadata fallback when type-and-unit-labels is enabled (#20223).
  • Metric metadata end to end: experimental metadata-relabeling via __type__, __unit__, and __help__ (#20101), recording rule metadata blocks (#20243), automatic recording rule metadata deduction (#20274), and stripping reserved schema labels from alerts (#20407).
  • PromQL and histograms: bitwise operators bitand, bitor, and bitxor (#19827), unquoted UTF-8 and dotted names accepted by default (#20169, #20345), querying NHCB as classic histograms behind promql-native-histograms-as-classic (#18048), and OpenMetricsText2.0.0-rc scrape support (#20091).
  • Performance: incremental sliding windows in rate, increase, resets, and changes (#20353), in-place unary float evaluation (#20355), float-only quantile scratch buffers (#20341), lower-memory scrapeCache and slice-based staleness tracking (#20316, #20318, #20319, #20321, #20322), and faster XOR/histogram chunk writes (#20404).
  • Search API and SD: boolean search_expr (#20460) and metadata-default-time-range (#20308), Kubernetes __meta_kubernetes_service_loadbalancer_ips (#20411), AWS MQ SD (#19750), and Azure machine_state (#17851).
  • Security and reliability: Go 1.26.10 (#20156), golang.org/x/net v0.62.0 (#20211), /graph open-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/net to v0.62.0 (CVE-2026-78661 / GO-2026-6860, CVE-2026-97045 / GO-2026-6866). #20211
  • [SECURITY] UI: Fix open redirect in the /graph compatibility redirect, where .. segments in the query string were resolved into the redirect target. #20055
  • [CHANGE] Kubernetes SD: __meta_kubernetes_service_loadbalancer_ip is again populated only from spec.loadBalancerIP, reverting the change from 3.15. It is deprecated in favor of __meta_kubernetes_service_loadbalancer_ips and will be removed in Prometheus 4.0. #20411
  • [CHANGE] OTLP: Deprecate the otlp-deltatocumulative feature flag in favor of otlp-native-delta-ingestion. #19950
  • [CHANGE] PromQL: Reject an empty data label selector in the experimental info function. Write info(v) instead of info(v, {}). #19820
  • [CHANGE] Relabel: Validate static replacement values for target_label: __type__ against known OpenMetrics metric types. #20101
  • [CHANGE] Rules: Strip reserved __type__ and __unit__ schema labels from Alert.Labels, ALERTS, and ALERTS_FOR_STATE, including when explicitly set in alerting rule or group labels. #20407
  • [FEATURE] API: Add metadata-default-time-range feature flag. With it, the series, label names, label values and search endpoints apply a default time range when start or end is omitted, and return a warning. #20308
  • [FEATURE] API: Add a search_expr parameter with AND, OR and NOT to 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_state label 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_ips with the comma-separated IPs from status.loadBalancer.ingress. #20411
  • [FEATURE] PromQL: Accept unquoted Unicode and dotted names by default; --enable-feature=promql-unquoted-utf8-names now 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, and bitxor. #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 in metric_relabel_configs behind --enable-feature=metadata-relabeling. Pre-existing use of these reserved label names as temporary labels in metric_relabel_configs will interact with this feature when enabled. #20101
  • [FEATURE] Remote Write: Add experimental mode configuration field (stateless, stateless-st) for Remote-Write 2.0 mode negotiation and data filtering. #20098
  • [FEATURE] Rules: Add --enable-feature=auto-recording-metadata to automatically deduce series metadata for recording rules. #20274
  • [FEATURE] Rules: Add optional metadata configuration block (help, type, and unit) to recording rules and append configured metadata when metadata-wal-records or type-and-unit-labels is enabled. #20243
  • [FEATURE] UI: Support unquoted Unicode and dotted PromQL names. #20170
  • [ENHANCEMENT] API: The experimental search endpoints add a returned field to the success trailer holding the number of results in the response. #20436
  • [ENHANCEMENT] Remote write: Add prometheus_remote_storage_samples_metadata_total and prometheus_remote_storage_histograms_metadata_total metrics, with a field label (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.TimeSeries entries within a batch across all Remote-Write 2.0 modes (none, stateless, and stateless-st), enabling exemplar delivery in stateless and stateless-st. Unmatched exemplars are still sent detached in none mode instead of dropped. #20070
  • [ENHANCEMENT] Scrape: Support OpenMetricsText2.0.0-rc (application/openmetrics-text;version=2.0.0-rc) when --enable-feature=openmetrics2 is 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_total and per-series commit statistics for duplicate-timestamp samples discarded during ingestion. #19711
  • [ENHANCEMENT] TSDB: Add prometheus_tsdb_head_chunk_reads_of_removed_series_total to count skipped reads of chunks belonging to series evicted from the head by CompactSelectedSeries or CompactStaleHead. #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 --extended now 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 matrixIterSlice and scan sliding windows incrementally in rate, increase, resets, and changes. #20353
  • [PERF] PromQL: Evaluate simple unary float functions in place on matrices and evaluate timestamp and start_timestamp over vector selectors without rangeEval. #20355
  • [PERF] PromQL: Reduce allocations in quantile, quantile_over_time and mad_over_time with 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 scrapeCache using unique.Handle. #20322
  • [PERF] Scrape: Reduce scrapeCache memory usage by storing series cache entries by uint64 hash and value instead of string keys and pointers. #20316
  • [PERF] Scrape: Replace seriesCur and seriesPrev staleness maps in scrapeCache with []uint64 metric-hash slices. #20321
  • [PERF] Scrape: Reuse existing storage labels.Labels on 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_values has both search[] and match[]. #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 remove prometheus_sd_refresh_* metrics of aws_sd jobs removed on reload. #19878
  • [BUGFIX] Federation: Fix federated NHCBs from PromQL results occasionally being rejected by the receiver with a negative +Inf bucket 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_bytes reporting 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_info metric when keep_identifying_resource_attributes is 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_of and max_of NaN handling with scalar functions. #20309
  • [BUGFIX] PromQL: Experimental max_of() and min_of() functions only return NaN if both arguments are NaN, consistent with the max and min aggregators. #20265
  • [BUGFIX] PromQL: Fix missing samples and false "conflicting counter resets" warnings in histogram_count(), histogram_sum() and histogram_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 that inf ^ 2 no 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 null and ~ 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-labels is 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-storage feature 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 CompactSelectedSeries or CompactStaleHead removes 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 the histogram_quantiles argument limit and the cosh/sinh names with the PromQL parser. #20499
  • [BUGFIX] UI: Fix syntax highlighting of several PromQL functions, count_values and the fill modifiers 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 dump and tsdb dump-openmetrics now 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