Repository navigation
promql: implement integral() function - #14440
Conversation
integral functionintegral() function
|
CC @beorn7 because he usually has an opinion on anything math-y (no idea yet if we would want to add this function) :) |
Thanks @juliusv !, just look at this awesome example I just added to the PR desc and examples.md (then try to get back time with existing functions, with a non-contrived promQL ;) -> For those metrics that produce |
|
I have this on my (long) review queue and have a detailed look ASAP. At first glance, this looks like avg_over_time with proper weight, which is something I always wanted. On the other hand, there are a million concerns in my head (not only those raised in the linked issues and discussions). Just as a disclaimer ahead of things that I generally would like something like this and are generally positive, but I have to run this against a number of criteria in detail. |
33fa69e to
ff4aa52
Compare
dff8c4f to
528d281
Compare
|
We have reached the beginning of my (unplugged) vacations. I'll come back to this when I'm back (~2w), but feedback from other domain experts would be very welcome in the meantime. |
6235ca2 to
d0143e0
Compare
beorn7
left a comment
There was a problem hiding this comment.
Tiny code comment. More high-level comment will follow soon.
| } | ||
|
|
||
| return aggrOverTime(vals, enh, func(s Series) float64 { | ||
| var sum, c float64 |
There was a problem hiding this comment.
Maybe c → cSum for consistency with value, cValue below.
|
First of all, thanks for the high-quality PR with all the test cases, comprehensive documentation, and thoughtful explanations. I have a bunch of considerations at various levels of detail. Let's start with the most simple one: This needs to be behind the The next one is about UX: The strategy argument is quite a source of confusion, first of all in terms of readability. As every code, PromQL is more often read than written, and a reader seeing Which gets us to the use cases. Let's iterate through the examples you have given above.
I think Similarly, I would ask where the I think the true magic of As hinted at above, I always wanted a "weighted" version of One interesting byproduct of the sub-query approach is that it deals quite well with a series disappearing or springing into existence during the interval, especially if it happens multiple times, mostly because it implicitly takes staleness into account. The behavior of the implementation in this PR is handling this in a possibly problematic way. I would need ASCII art now or a photograph of my whiteboard for a proper explanation but let's try: If the This is just the current state of my stream of consciousness. My semi-educated gut feeling currently tells me we might just be better off with sub-queries as a work around because it expresses pretty clearly what we are doing in terms of existing PromQL primitives. It's a bit clunky but doesn't come with surprises for PromQL experts. The points against this gut feeling are maybe the following: If the use case is more than just niche, we might argue that it should not rely on something like a work-around via sub-queries. What would have even more significance (IMHO) would be if we actually needed "more magic" to handle the case of radically different scrape intervals and series dropping in and out, i.e. something we could not emulate with sub-queries. But for that, the current implementation needed more tweaks in any case. Note that the current implementation of I'll stop her, as said, this is incomplete and in no way conclusive. Looking forward to further thoughts. |
Makes sense, but just note range vector selectors currently don't get populated with any staleness markers (staleness markers are only considered for instant vector selectors, and that's it), so this would have to change in the engine. And then all other functions which currently rely on range vectors not containing staleness markers would have to take them into account. |
|
Yeah, that's kind of what troubles me. I think for rate calculation, it's deliberate to not take staleness markers into account. As said above, that's the beauty of counters. We just check the count of events. We don't care if the series stopped to exist in the middle of the range. (We do care about starting after the beginning and stopping before the end of the range. And for that, we have a heuristic in place. And it's consistent with how it handles both ends. We could utilize a staleness marker for the end, and we could even use it to refine our heuristics to calculate the average sample interval. However, I wouldn't apply those subtle changes right now. I'd rather include those consideration into the pending re-thinking of the whole rate calculation (cf. "xrate debate").) However, for this integral function, we are in a somewhat different position because now gaps in the middle of the range are really important. Also, we do the whole exercise here to accommodate for irregular scrape intervals including gaps. In cases where those changes aren't happening, we are fine with the current Implementation-wise, we could make the staleness marker available to function using ranges if they need it. It's nasty, because so far, we can abstract away the staleness marker very early in the stack, essentially in the TSDB query, and PromQL doesn't have to be aware of it at all. Increasingly often, it feels to me that we need a better model of the start and end and sampling interval of each (contiguous piece of a) series. This could help with an actually improved rate calculation, and would also allow a clean implementation of an integral function. |
I don’t agree with this part. I’m only forced to integrate using ‘sum_over_time’ when I can’t get to the original counter metric. This is typically because I’m downstream of some recording rule, which is doing aggregation and relabelling. This being the case, missing samples are not gaps in the underlying data, but gaps in the recording rule. My assumption is that the rule failed to evaluate in the time allowed for evaluation, hence the gap. Meaning I believe a good assumption for the value where the gap lies would not be a zero rate, but a rate identical to the immediately preceding datapoint in that rate metric. Any thoughts @jjo ? As the original PR author, I’d love to hear your take on this. I think you understand the real world conditions when this function would be used, more than most people. |
|
One more thought. I agree with Bjorn that I’d like to just add one function to start with (I’m fine with midpoint) and see if that is enough. (YAGNI- “you ain’t gonna need it” - for the other two) And my naming preference is for “integral”. A “weighted sum over time” isn’t very meaningful to me personally. I think it’s more than just weighted- weighted implies only giving more weight to the samples that are more spaced out- it doesn’t imply scaling up the result for all samples. |
|
How about monte-carlo integration - shouldnt that be somewhat robust towards missing samples? |
|
As discussed with @MichaHoffmann , Monte-Carlo integration works with a random distribution of samples, representative for the full time series. However, what we are trying to solve here is precisely the problem that the samples in the TSDB are not always representative. If the scrape interval changes within the range (the most common problematic case), we systematically over-sample the part where the scrape interval is shorter. If samples are missing (because of scrape problems), we systematically under-sample that part. One could argue that you already get Monte-Carlo integration if just using |
If I had to decide this now, and if I had to decide alone, I would say I don't see sufficient use of this addition in its current state. But I don't feel I understand this deeply enough to really make the call (or to come up with a better solution). I would love to get other opinions, but so far, very little has materialized. I submitted the dev-summit agenda item in the hope of getting more feedback. (I don't think that the dev-summit is the suitable format to do the deep dive into all the gory details I partially dug up above, but it's a good way of finding out if others had similar thoughts and how much interest there is for anything like this.) However, it didn't get a lot of votes so far and never made it to the top of the agenda so far. So I refer back to what I said above:
So the one message we get from the (lack of) feedback is that there is not a lot of interest in this feature among the active developers. Which enforces my gut feeling that it might not be worth going down the rabbit hole of finding out how to implement this feature in a useful way.
I think such an involved new function should always be introduced behind the experimental functions feature flag. Everything I said above was under the assumption that we would do so. The recurring theme with these "hard" problems (integral, but also "xrate") is that we need a better understanding of the beginning and end of a series. The fundamental point of view would be to solve that first and then come back to the problems at hand. However, as usual, I don't want to block anything that others want by my maybe too fundamental and fatalistic view. But it needs somebody else to champion and shepherd this. |
|
Thanks! |
wooHoo, thanks for merging! 🎉 😹 |
Note that this PR vendors [promql: implement integral() function](prometheus/prometheus#14440), so we mark it as unsupported in MQE (along with its new unit tests) for now. The commits [make sync-upstream-promql-tests](040baf5) and [make disable-failing-upstream-promql-tests](5bb36af) were created by merging in #16648 in a temp branch, running those commands, and then cherry-picking the commits on this branch. This is a manual test to ensure that the new commands in that PR work well before we merge that. They worked as expected. Also ran `make build-helm-tests` because main was stale after #16606 and #16658 merged concurrently, unrelated to this vendoring. --- ## Update mimir-prometheus dependency *This PR was automatically created by the [update-vendored-mimir-prometheus.yml](https://github.com/grafana/mimir/blob/main/.github/workflows/update-vendored-mimir-prometheus.yml) workflow.* ### Details: - **Source branch/ref**: [`main`](https://github.com/grafana/mimir-prometheus/tree/main) - **Previous commit**: [`e35a21e1a71c`](grafana/mimir-prometheus@e35a21e1a71c) - **New commit**: [`d948a614e56e9fee35c4f4b76b7568d883b37bf0`](grafana/mimir-prometheus@d948a61) - **Changes**: [`e35a21e1a71c...d948a614e56e9fee35c4f4b76b7568d883b37bf0`](grafana/mimir-prometheus@e35a21e...d948a61) --------- Co-authored-by: mimir-vendoring[bot] <149193068+mimir-vendoring[bot]@users.noreply.github.com> Co-authored-by: Jeanette Tan <[email protected]>
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)
##### [\`v3.16.0\`](https://github.com/prometheus/prometheus/releases/tag/v3.16.0) - \[CHANGE] API: The experimental search endpoints now clamp `batch_size` to 1000. [#19731](prometheus/prometheus#19731) - \[CHANGE] Configuration: Default --web.external-url to https when --web.config.file enables TLS. [#19241](prometheus/prometheus#19241) - \[CHANGE] PromQL: Subquery samples are now included in the query TotalSamples and TotalSamplesPerStep statistics, and SamplesRead now counts reads from subqueries with an @ modifier in range queries. [#19165](prometheus/prometheus#19165) - \[CHANGE] Remote write: Stop exposing the deprecated `prometheus_remote_storage_metadata_total`, `prometheus_remote_storage_metadata_failed_total`, `prometheus_remote_storage_metadata_retried_total`, and `prometheus_remote_storage_metadata_bytes_total` metrics for Remote Write 2.0 queues. [#20080](prometheus/prometheus#20080) - \[CHANGE] Remote write receiver: Count Remote Write 2.x samples and histograms ingested without metadata in `prometheus_api_remote_write_without_metadata_appended_samples_total` even when `metadata-wal-records` is disabled. [#19812](prometheus/prometheus#19812) - \[CHANGE] TSDB: Reject exemplars whose label names are not unique, instead of storing them and serving a duplicate JSON key from `/api/v1/query_exemplars`. [#19896](prometheus/prometheus#19896) - \[FEATURE] API: Allow overriding PromQL Start Timestamp processing on a per-query basis using the `X-Prometheus-Use-Start-Timestamps` HTTP header. [#19066](prometheus/prometheus#19066) - \[FEATURE] Agent: Support metadata-wal-records in Prometheus Agent mode. [#19684](prometheus/prometheus#19684) - \[FEATURE] PromQL: Add experimental `integral()` function for computing integral-over-time of range vectors behind the `--enable-feature=promql-experimental-functions` flag. [#14440](prometheus/prometheus#14440) - \[FEATURE] PromQL: Add experimental query cost estimation, actual cost reporting, and configurable execution limits, enabled with `--enable-feature=query-cost`. [#20028](prometheus/prometheus#20028) - \[FEATURE] PromQL: Smoothed and Anchored vector selectors are now stable and always-on. [#19697](prometheus/prometheus#19697) - \[FEATURE] PromQL: Use start timestamps to detect counter resets when float timeseries are queried using extended range selector modifiers (`anchored`, `smoothed`). This feature is hidden behind `use-start-timestamps` feature flag. [#18966](prometheus/prometheus#18966) - \[FEATURE] Promtool: print test filename during promtool tests [#18271](prometheus/prometheus#18271) - \[FEATURE] PromQL: Allow unquoted Unicode letters and dots behind a feature flag [#20162](prometheus/prometheus#20162) - \[ENHANCEMENT] Search API: Warn when participating remote-read storage does not support search. [#19992](prometheus/prometheus#19992) - \[ENHANCEMENT] Remote Read: Add native histogram prometheus_remote_read_handler_gate_wait_duration_seconds to measure concurrency-gate wait duration, including requests canceled while waiting. [#18355](prometheus/prometheus#18355) - \[ENHANCEMENT] Remote Write: Add experimental flag `convert_nhcb_to_classic` to convert NHCB to classic histograms for external systems that dont support NHCBs. [#17205](prometheus/prometheus#17205) - \[ENHANCEMENT] promtool: Add `--allow-incompatible-block-duration` so users can specify any max-block-duration instead of being restricted to the default Prometheus block durations. [#19363](prometheus/prometheus#19363) - \[PERF] Remote write: Cache repeated OTLP histogram metric names. [#19717](prometheus/prometheus#19717) - \[PERF] OpenMetrics 2.0 parser: Reuse classic histogram and summary expansion buffers across scrapes. [#19907](prometheus/prometheus#19907) - \[PERF] PromQL: Decode only histogram sum/count (not buckets) for timestamp(), start_timestamp() and absent(). [#19738](prometheus/prometheus#19738) - \[PERF] PromQL: Only select the fixed window for subqueries with an `@` modifier. [#19863](prometheus/prometheus#19863) - \[PERF] Remote write / TSDB: Deduplicate per-series metadata structs in memory with `unique.Handle`. [#20040](prometheus/prometheus#20040) - \[PERF] Scrape: Avoid some copies of scrape response bodies. [#19394](prometheus/prometheus#19394) - \[PERF] TSDB: Improve XOR2 compression and append performance by selecting value windows based on encoding cost. [#19962](prometheus/prometheus#19962) - \[PERF] TSDB: Reduce memory used writing and reading checkpoint metadata records. [#19712](prometheus/prometheus#19712) - \[PERF] Scrape: Convert classic histograms to NHCB directly in the OpenMetrics 2.0 parser without wrapping in `NHCBParser`. [#19880](prometheus/prometheus#19880) - \[PERF] Scrape: Reduce OpenMetrics 2.0 parser allocations and CPU overhead by lazily constructing composite series and exemplar labels. [#19895](prometheus/prometheus#19895) - \[BUGFIX] Remote read: Abort failed streaming responses without writing duplicate headers or appending plain-text errors to the protobuf stream [#19749](prometheus/prometheus#19749) - \[BUGFIX] TSDB: Fix loss of out-of-order samples when a WAL checkpoint drops a series record that the out-of-order write-behind log still needs [#19737](prometheus/prometheus#19737) - \[BUGFIX] TSDB: Fix queries that seek within a head chunk returning samples committed after the query started [#19854](prometheus/prometheus#19854) - \[BUGFIX] TSDB: Preserve mapped chunks when WAL replay merges multiple references for the same series, preventing missing out-of-order samples and duplicate in-order chunks after restart [#19805](prometheus/prometheus#19805) - \[BUGFIX] Fix auto-reload logic to reload after reverting a failed configuration change [#19838](prometheus/prometheus#19838) - \[BUGFIX] API: Do not match metric family metadata for doubled \_total and \_info suffixes in experimental search API. [#19910](prometheus/prometheus#19910) - \[BUGFIX] API: Reject `timeout` and `lookback_delta` values that overflow int64 instead of turning them into a negative duration [#19658](prometheus/prometheus#19658) - \[BUGFIX] API: Resolve metric family metadata for suffixed metric names in search results, in experimental search API. [#19824](prometheus/prometheus#19824) - \[BUGFIX] AWS SD: Describe each ElastiCache cluster once instead of twice for clusters that are not replication group members. [#19434](prometheus/prometheus#19434) - \[BUGFIX] Build: Allow installing promtool with version-suffixed go install commands [#19754](prometheus/prometheus#19754) - \[BUGFIX] Discovery: Fix a panic in Azure service discovery when a VM tag has a null value. [#19755](prometheus/prometheus#19755) - \[BUGFIX] Federation: fix corruption of float native histograms. [#19679](prometheus/prometheus#19679) - \[BUGFIX] Fix ts_of_last_over_time for samples before the Unix epoch. [#19828](prometheus/prometheus#19828) - \[BUGFIX] Histograms: Fix ConvertNHCBToClassic inflating classic bucket counts for integer native histograms whose spans have gaps. [#19659](prometheus/prometheus#19659) - \[BUGFIX] Logging: Preserve rule and TSDB block values in JSON logs. [#19572](prometheus/prometheus#19572) - \[BUGFIX] OTLP receiver: Drop exemplars with timestamps more than 10 minutes in the future instead of storing them and blocking subsequent exemplars for that series. [#19812](prometheus/prometheus#19812) - \[BUGFIX] OTLP: Count only out-of-order exemplars in `prometheus_api_otlp_out_of_order_exemplars_total`, not every rejected exemplar. [#20030](prometheus/prometheus#20030) - \[BUGFIX] OTLP: Do not drop exemplars that have a `trace_id` or `span_id` filtered attribute in addition to a trace or span ID. The trace context now takes precedence over the colliding attribute, as required by the OpenTelemetry specification. [#20004](prometheus/prometheus#20004) - \[BUGFIX] OTLP: Do not emit `le="+Inf"` twice when a histogram's explicit bounds end at `+Inf`, and warn about the bound. [#19425](prometheus/prometheus#19425) - \[BUGFIX] OTLP: Stop dropping exemplars that arrive out of timestamp order within a data point. [#20029](prometheus/prometheus#20029) - \[BUGFIX] OpenMetrics 2.0: Attach histogram exemplars to matching classic `_bucket` series and preserve them when scraping both native and classic histograms. [#20020](prometheus/prometheus#20020) - \[BUGFIX] PromQL: Avoid intermediate overflow in `rad()` and `deg()` conversions. [#19901](prometheus/prometheus#19901) - \[BUGFIX] PromQL: Consistently ignore and drop `__type__` and `__unit__` labels in `without` aggregations, `absent()`, `info()`, and binary operator fill matching. [#19986](prometheus/prometheus#19986) - \[BUGFIX] PromQL: Do not panic when printing the partial AST returned alongside a parse error. [#19797](prometheus/prometheus#19797) - \[BUGFIX] PromQL: Drop **type** and **unit** in binary operations so they are transparent to users, similar to how **name** is handled. [#18680](prometheus/prometheus#18680) - \[BUGFIX] PromQL: Fix `==`, `!=`, `changes()` and `count_values` on native histograms giving wrong results inside `histogram_count()`, `histogram_sum()` and `histogram_avg()`. [#20024](prometheus/prometheus#20024) - \[BUGFIX] PromQL: Fix histogram_fraction returning wrong results for native histograms with custom buckets when a bucket boundary is exactly 0. [#19657](prometheus/prometheus#19657) - \[BUGFIX] PromQL: Fix histogram_quantile and histogram_quantiles interpolating within the wrong bucket for native histograms whose sum is NaN. [#19973](prometheus/prometheus#19973) - \[BUGFIX] PromQL: Fix lexing of subqueries whose range is a duration keyword expression, e.g. `foo[range():1s]`. [#19729](prometheus/prometheus#19729) - \[BUGFIX] PromQL: Fix warning and error locations for duration expressions `min_of` and `max_of`. [#19742](prometheus/prometheus#19742) - \[BUGFIX] PromQL: Ignore NaN classic histogram bucket boundaries in `histogram_quantile`, `histogram_quantiles` and `histogram_fraction` and return correct value instead of NaN if there are normal buckets. [#20057](prometheus/prometheus#20057) - \[BUGFIX] PromQL: Preserve infinite values at exact quantile ranks. [#19899](prometheus/prometheus#19899) - \[BUGFIX] PromQL: Preserve original operand sides for experimental fill modifiers with group_right matching. [#19939](prometheus/prometheus#19939) - \[BUGFIX] PromQL: Preserve subquery step expressions when printing queries after preprocessing. [#19743](prometheus/prometheus#19743) - \[BUGFIX] PromQL: Range vector functions no longer raise a spurious "vector cannot contain metrics with the same labelset" error when series have different metric names but the same remaining labels, as long as their timestamps do not overlap within the evaluated range window [#18631](prometheus/prometheus#18631) - \[BUGFIX] PromQL: do not count subquery materialized samples in total samples statistics [#19873](prometheus/prometheus#19873) - \[BUGFIX] Remote write: Prevent future-dated exemplars from scaling shards down to the minimum. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Agent: Prevent future sent timestamps from advancing WAL truncation beyond the minimum retention window. [#19866](prometheus/prometheus#19866) - \[BUGFIX] Rules: Restore firing alerts with for durations shorter than --rules.alert.for-grace-period after a restart. [#19882](prometheus/prometheus#19882) - \[BUGFIX] Scrape: fix failing scrape when float histogram is emitted over protobuf with count, zero count and buckets all zero, for example a result of recording `rate(x[1m])` over constant histogram. [#19682](prometheus/prometheus#19682) - \[BUGFIX] Search API: Return the lexically smallest label values when `limit` is set on `/api/v1/search/label_values`, instead of an arbitrary subset [#19694](prometheus/prometheus#19694) - \[BUGFIX] TSDB: Fix WAL watcher permanently skipping checkpoint series garbage collection when lagging behind head truncation. [#20041](prometheus/prometheus#20041) - \[BUGFIX] Search API: Avoid panics when the requested time range has no participating storage. [#19992](prometheus/prometheus#19992) - \[BUGFIX] TSDB: Fix a race in selected-series and stale-series compaction where a sample committed after the block was written but before the series was evicted from the head could be silently lost. The fix no longer depends on isolation being enabled. [#19666](prometheus/prometheus#19666) - \[BUGFIX] TSDB: Fix a rare case where a sample could be lost during selected-series or stale-series compaction if an unrelated write to the same series ran cleanup that erased the evidence needed to protect it. [#19672](prometheus/prometheus#19672) - \[BUGFIX] TSDB: Fix spurious "unknown series references" warnings during WAL replay after a restart, when the only blocks on disk were produced by selected-series or stale-series compaction. [#19734](prometheus/prometheus#19734) - \[BUGFIX] TSDB: Increment `prometheus_tsdb_wal_corruptions_total` when WAL corruption is detected during checkpoint creation, so the metric reflects corruption found at compaction time rather than only after a restart-triggered repair. [#19858](prometheus/prometheus#19858) - \[BUGFIX] TSDB: Preserve series identities needed to recover exemplars after compaction and restart. [#19940](prometheus/prometheus#19940) - \[BUGFIX] TSDB: Reject native histograms whose span offsets overflow the int32 bucket index instead of storing them with corrupted buckets. [#20034](prometheus/prometheus#20034) - \[BUGFIX] TSDB: fix no passing metadata-wal-records to TSDB from main feature flag. [#19678](prometheus/prometheus#19678) - \[BUGFIX] Templates: Preserve IPv6 addresses with dotted zone identifiers in `stripDomain`. [#19908](prometheus/prometheus#19908) - \[BUGFIX] UI: Don't automatically open an autocomplete dropdown after closing a function call body or aggregation operator with a closing parenthesis. [#19825](prometheus/prometheus#19825) - \[BUGFIX] Web: Fix HTTP/2 negotiation silently falling back to HTTP/1.1 under Go 1.27+ when TLS is enabled with `http2: true`. The server now correctly advertises `h2` via ALPN and multiplexes concurrent requests over a single connection. [#19848](prometheus/prometheus#19848) - \[BUGFIX] mixin: Fix double-counting of failed samples in the `PrometheusRemoteStorageFailures` alert denominator. [#19877](prometheus/prometheus#19877) - \[BUGFIX] promtool: Honor `--enable-feature` when evaluating rules in `test rules`. [#20046](prometheus/prometheus#20046) - \[BUGFIX] Scrape: Ensure UTF-8 works with the experimental OpenMetrics 2.0 [#19902](prometheus/prometheus#19902) - \[BUGFIX] Scrape: Reject sum-only classic histograms during NHCB conversion [#19315](prometheus/prometheus#19315)

Promql: implement
integral(v range-vector, strategy=2 scalar)function.Refs: some previous discussion at #1335 and https://groups.google.com/g/prometheus-developers/c/3EuF6ffNt_k.
What
Implement
integral(v range-vector, strategy=2 scalar)function.Why
There are use cases where
sum_over_time()oravg_over_time()multiplied by the length of the whole interval are cumbersome to use
(need to factor the length of the interval and/or sampling period),
or plainly N/A (e.g. if you had periods of uneven scraping intervals).
Some relevant use cases (added to examples.md):
Calculate the total cost over past week given the per-node hourly cost:
integral(hourly_cost[7d]) / 3600Calculate the total energy consumed in kWh over last day, given the instant
power consumption in Watts:
integral(power_rate[1d]) / 1000 / 3600For those "boolean" metrics that produce
1s or0s, integrating them overtime will give the time in seconds that the value was
1, for example, toget the amount of time a particular metric has been absent during the past
day (sampled every 5 minutes):
integral(absent(metric_name)[1d:5m])As another case for measuring amount of time, for example a boolean metric
representing a service level agreement (SLA) being met divided by the total
time, will give the SLA ratio:
integral(service_sla_ok[7d]) / (3600 * 24 * 7)How
Formula-wise the implementation is mostly straightforward, but details
are important:
implements three strategies to calculate the integral via trapezoidal
area aggregation: mid-point (aka Riemann's, default for
strategy=2),left-point (
strategy=0) and right-point (strategy=1); this is done tolet the user choose the best one to use depending on their value
"alignment" with the integrated interval.
there's specific NaN handling (mapped to zero) to simplify implementing
of the above strategies, mid-point in particular.
mid-point averaging (i.e.
(prevVal+currVal)/2) is implemented withkahanSumInc()to keep big-vs-small numbers support for neighboringsamples.
result needs to support being wrapped inside another aggregate like
sum_over_time(), i.e. interval limit handling is very important toavoid double-aggregating the edge(s).
Testing
Extensive testing cases added to
functions.test.Strategy
Excerpt from functions.go:
Signed-off-by: JuanJo Ciarlante [email protected]