Prometheus 3.16.0
Prometheus 3.16.0 shipped on November 4, 2026, a little under two weeks after 3.15.1. This is the release where the extended range selector work that has been experimental since the 3.x line finally lands as stable behaviour, and where query cost control stops being a manual exercise in guesswork.
Overview
Four themes dominate the changelog: PromQL semantics around subqueries and start timestamps, experimental cost accounting for queries, remote write cleanup around the 2.0 metadata metrics, and a long list of TSDB correctness fixes around out-of-order ingestion and WAL replay.
Changes That Affect Existing Deployments
- External URL scheme. When
--web.config.fileenables TLS,--web.external-urlnow defaults tohttpsinstead ofhttp. Deployments that relied on the old default to build absolute links will see a scheme change in alert templates and generated URLs. - Search API batch size. The experimental search endpoints clamp
batch_sizeto 1000. Requests asking for more are silently capped rather than served. - Subquery accounting. Subquery samples are now counted in
TotalSamplesandTotalSamplesPerStep, andSamplesReadincludes reads from subqueries using an@modifier in range queries. Query stats will shift upward for anything that leans on subqueries, andquery.max-samplesenforcement will trigger earlier for those queries. - Remote write metadata metrics removed. The deprecated
prometheus_remote_storage_metadata_total,prometheus_remote_storage_metadata_failed_total,prometheus_remote_storage_metadata_retried_total, andprometheus_remote_storage_metadata_bytes_totalmetrics are no longer exposed for Remote Write 2.0 queues. Dashboards and alerts built on them will go flat. - Exemplar validation. TSDB now rejects exemplars whose label names are not unique instead of storing them and serving a duplicate JSON key from
/api/v1/query_exemplars. Producers sending malformed exemplars will start seeing rejections.
New Features
- Smoothed and anchored vector selectors are stable. The extended range selector modifiers no longer require a feature flag; they are always on.
- Query cost estimation. Enabling
--enable-feature=query-costturns on experimental cost estimation, actual cost reporting, and configurable execution limits. This is the first built-in answer to "which dashboard panel is eating my querier". - Per-query start timestamps. The
X-Prometheus-Use-Start-Timestampsheader overrides start timestamp processing for a single query, which is useful for isolating behaviour during a migration instead of flipping the global flag. - integral(). A new experimental PromQL function that computes the integral over time of a range vector, gated behind
promql-experimental-functions. - Agent metadata WAL records. Prometheus Agent mode now supports
metadata-wal-records, closing a gap that forced operators to choose between shipping metadata and using agent mode. - Unicode in PromQL. Unquoted Unicode letters and dots are allowed behind a feature flag, which matters for anyone whose metric names were transliterated to satisfy the old parser.
Performance and Scrape Work
The Remote Write path gets a cache for repeated OTLP histogram metric names and deduplication of per-series metadata structs in memory through unique.Handle. The OpenMetrics 2.0 parser avoids buffer churn by reusing classic histogram and summary expansion buffers, converts classic histograms to native histograms directly in the parser, and builds composite series and exemplar labels lazily. TSDB compression picks value windows based on encoding cost for XOR2 chunks, and checkpoint metadata records use less memory on both write and read. timestamp(), start_timestamp(), and absent() now decode only histogram sum and count rather than full bucket sets.
Notable Fixes
- Out-of-order samples are no longer lost when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs.
- Queries seeking inside a head chunk no longer return samples committed after the query started.
- Mapped chunks survive WAL replay when multiple references for the same series are merged, preventing missing out-of-order samples and duplicate in-order chunks after restart.
- Configuration auto-reload now fires after a failed change is reverted.
- Remote read aborts failed streaming responses without writing duplicate headers or appending plain-text errors into the protobuf stream.
timeoutandlookback_deltavalues that overflowint64are rejected instead of silently becoming negative durations.
Upgrade Notes
Nothing here requires a config rewrite, but three things deserve a look before you roll 3.16.0 out. First, audit dashboards that read the Remote Write 2.0 metadata metrics, because they are gone. Second, if you terminate TLS in Prometheus itself and depend on generated absolute URLs, confirm the new https default matches your proxy setup. Third, expect query statistics to jump for subquery-heavy expressions, and re-check any query.max-samples limits you tuned against the old accounting.