Prometheus v2.50.0 introduces automatic memory limit handling (`auto-gomemlimit`), experimental zero-ingestion created timestamps, and overlapping TSDB compaction. It also improves performance for remote write error handling and PromQL execution efficiency.
Leverage new promtool histograms analysis commands, experimental natural sorting in PromQL, and native histogram configuration options.
📊 Product & Engineering Leads
Enhancements in memory management, native histograms, and advanced query tooling expand operational visibility and scalability.
⚙️ DevOps & Security
Monitor the new `auto-gomemlimit` feature flag for automatic memory limit management and prepare for remote write error 400 responses on `storage.ErrTooOldSample`.
✨ New Features & Capabilities (5)
Remote Write: Drop old inmemory samples via config entry `sample_age_limit`
Experimental: Support for ingesting zeros as created timestamps enabled via `created-timestamp-zero-ingestion`
Promtool: Add `analyze` histograms command
TSDB/compaction: Add a way to enable overlapping compaction
Add automatic memory limit handling activated using feature flag `auto-gomemlimit`
⚡ Performance & Enhancements (8)
Remote Write: Error `storage.ErrTooOldSample` now generates HTTP error 400 instead of 500
Promtool: Allow specifying multiple matchers in `promtool tsdb dump` and improve visibility for `promtool test rules` with JSON colored formatting
PromQL: Faster execution of metric functions like abs() and rate(), and use natural sort in `sort_by_label` and `sort_by_label_desc`
Native Histograms: Support `native_histogram_min_bucket_factor` in scrape_config and issue warnings if histogramRate is applied incorrectly
TSDB: Optimize label values with matchers, reduce transaction isolation structure sizes, and optimize merges using Loser Tree
Agent: Performance improvement via smaller global hash lookup table
Kubernetes SD: Check preconditions earlier and avoid unnecessary checks or iterations
Consoles: Exclude iowait and steal from CPU Utilisation
🔧 Bug Fixes & Patches (3)
Scraping: Fix quality value in HTTP Accept header
UI: Fix usage of function `time()` that was crashing, and fix deep linking in stacked graphs
Azure SD: Fix SD crashing when encountering a VM scale set and check for nil before accessing/dereferencing
❓ Frequently Asked Questions
Does Prometheus v2.50.0 contain breaking changes?
No breaking changes are explicitly documented in v2.50.0, although Remote Write now returns an HTTP 400 instead of 500 for `storage.ErrTooOldSample` errors.
What is the primary highlight of v2.50.0?
The primary highlights include automatic memory limit handling (`auto-gomemlimit`), overlapping compaction support in TSDB, and numerous query and native histogram optimizations.
How should teams prepare to upgrade to v2.50.0?
Teams should review remote write error handling expectations (since old samples now yield HTTP 400) and evaluate new experimental features like `auto-gomemlimit` or `created-timestamp-zero-ingestion` in non-production environments first.
📄 View Raw Release Notes (Original Developer Log)
* [CHANGE] Remote Write: Error `storage.ErrTooOldSample` is now generating HTTP error 400 instead of HTTP error 500. #13335
* [FEATURE] Remote Write: Drop old inmemory samples. Activated using the config entry `sample_age_limit`. #13002
* [FEATURE] **Experimental**: Add support for ingesting zeros as created timestamps. (enabled under the feature-flag `created-timestamp-zero-ingestion`). #12733 #13279
* [FEATURE] Promtool: Add `analyze` histograms command. #12331
* [FEATURE] TSDB/compaction: Add a way to enable overlapping compaction. #13282 #13393 #13398
* [FEATURE] Add automatic memory limit handling. Activated using the feature flag. `auto-gomemlimit` #13395
* [ENHANCEMENT] Promtool: allow specifying multiple matchers in `promtool tsdb dump`. #13296
* [ENHANCEMENT] PromQL: Restore more efficient version of `NewPossibleNonCounterInfo` annotation. #13022
* [ENHANCEMENT] Kuma SD: Extend configuration to allow users to specify client ID. #13278
* [ENHANCEMENT] PromQL: Use natural sort in `sort_by_label` and `sort_by_label_desc`. This is **experimental**. #13411
* [ENHANCEMENT] Native Histograms: support `native_histogram_min_bucket_factor` in scrape_config. #13222
* [ENHANCEMENT] Native Histograms: Issue warning if histogramRate is applied to the wrong kind of histogram. #13392
* [ENHANCEMENT] TSDB: Make transaction isolation data structures smaller. #13015
* [ENHANCEMENT] TSDB/postings: Optimize merge using Loser Tree. #12878
* [ENHANCEMENT] TSDB: Simplify internal series delete function. #13261
* [ENHANCEMENT] Agent: Performance improvement by making the global hash lookup table smaller. #13262
* [ENHANCEMENT] PromQL: faster execution of metric functions, e.g. abs(), rate() #13446
* [ENHANCEMENT] TSDB: Optimize label values with matchers by taking shortcuts. #13426
* [ENHANCEMENT] Kubernetes SD: Check preconditions earlier and avoid unnecessary checks or iterations in kube_sd. #13408
* [ENHANCEMENT] Promtool: Improve visibility for `promtool test rules` with JSON colored formatting. #13342
* [ENHANCEMENT] Consoles: Exclude iowait and steal from CPU Utilisation. #9593
* [ENHANCEMENT] Various improvements and optimizations on Native Histograms. #13267, #13215, #13276 #13289, #13340
* [BUGFIX] Scraping: Fix quality value in HTTP Accept header. #13313
* [BUGFIX] UI: Fix usage of the function `time()` that was crashing. #13371
* [BUGFIX] Azure SD: Fix SD crashing when it finds a VM scale set. #13578
<details>
<summary> Commits </summary>
* Enable reusing memory when converting between histogram types by @fpetkovski in https://github.com/prometheus/prometheus/pull/13215
* Append Created Timestamps by @ArthurSens in https://github.com/prometheus/prometheus/pull/12733
* tsdb: use Go standard errors by @mmorel-35 in https://github.com/prometheus/prometheus/pull/13155
* Sync golangci-lint version by @SuperQ in https://github.com/prometheus/prometheus/pull/13269
* tsdb: remove unused option by @GiedriusS in https://github.com/prometheus/prometheus/pull/13282
* Tweak line wrappings in docs/storage.md by @windsonsea in https://github.com/prometheus/prometheus/pull/11583
* `chunks.Reader`: Fix typo in `ChunkOrIterable` doc string by @aknuds1 in https://github.com/prometheus/prometheus/pull/13205
* Allow non-default registry to be used for metrics of SD components by @ptodev in https://github.com/prometheus/prometheus/pull/13023
* postings: use Loser Tree for merge by @bboreham in https://github.com/prometheus/prometheus/pull/12878
* Get VM Scale Set NIC by @daniel-resdiary in https://github.com/prometheus/prometheus/pull/13283
* Reuse float histogram objects by @fpetkovski in https://github.com/prometheus/prometheus/pull/13276
* Document feature flag 'created-timestamp-zero-ingestion' by @ArthurSens in https://github.com/prometheus/prometheus/pull/13279
* kuma_sd: Extend Kuma SD configuration to allow users to specify ClientId by @Automaat in https://github.com/prometheus/prometheus/pull/13278
* scripts: Add minimal permissions to script golangci-lint.yml by @diogoteles08 in https://github.com/prometheus/prometheus/pull/13288
* build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager by @mmorel-35 in https://github.com/prometheus/prometheus/pull/13294
* Dedup code handling getting network interface by @daniel-resdiary in https://github.com/prometheus/prometheus/pull/13285
* scrape: consistent function names for metadata by @bboreham in https://github.com/prometheus/prometheus/pull/13177
* relabel: improve logic for target labels by @bboreham in https://github.com/prometheus/prometheus/pull/13308
* Move metric type definitions to common/model by @bboreham in https://github.com/prometheus/prometheus/pull/13176
* scrape: simplify TargetsActive function by @bboreham in https://github.com/prometheus/prometheus/pull/13167
* bug: Fix quality value in accept header by @kalpadiptyaroy in https://github.com/prometheus/prometheus/pull/13313
* Fix reusing float histograms by @fpetkovski in https://github.com/prometheus/prometheus/pull/13289
* Adding small test update for temp dir using t.TempDir by @zedGGs in https://github.com/prometheus/prometheus/pull/13293
* Revert "Adding small test update for temp dir using t.TempDir (#13293)" by @bboreham in https://github.com/prometheus/prometheus/pull/13344
* agent: make the global hash lookup table smaller by @bboreham in https://github.com/prometheus/prometheus/pull/13262
* build(deps): bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 in /documentation/examples/remote_storage by @dependabot in https://github.com/prometheus/prometheus/pull/13354
* Bump client_golang to v1.18.0 by @tpaschalis in https://github.com/prometheus/prometheus/pull/13373
* remote: consider storage.ErrTooOldSample as non-retryable by returning 400 by @nmdanny in https://github.com/prometheus/prometheus/pull/13335
* Drop old inmemory samples by @marctc in https://github.com/prometheus/prometheus/pull/13002
* ui: fix handling of scalar and string in isHeatmapData by @kevinmingtarja in https://github.com/prometheus/prometheus/pull/13371
* tsdb/{index,compact}: allow using custom postings encoding format by @GiedriusS in https://github.com/prometheus/prometheus/pull/13242
* build(deps): bump actions/setup-go from 3.5.0 to 5.0.0 in /scripts by @dependabot in https://github.com/prometheus/prometheus/pull/13362
* build(deps): bump github/codeql-action from 2.22.8 to 3.22.12 by @dependabot in https://github.com/prometheus/prometheus/pull/13358
* put @nexucis has a release shepherd for the next release by @Nexucis in https://github.com/prometheus/prometheus/pull/13383
* protobuf: add unit parser by @vesari in https://github.com/prometheus/prometheus/pull/13299
* Add analyze histograms command to promtool by @zenador in https://github.com/prometheus/prometheus/pull/12331
* tsdb: add enable overlapping compaction by @GiedriusS in https://github.com/prometheus/prometheus/pull/13393
* tsdb/compact: fix passing merge func by @GiedriusS in https://github.com/prometheus/prometheus/pull/13391
* allow setting multiple matchers to "promtool tsdb dump" by @machine424 in https://github.com/prometheus/prometheus/pull/13296
* Merge 2.49.0 release to main by @bwplotka in https://github.com/prometheus/prometheus/pull/13399
* tsdb/main: wire "EnableOverlappingCompaction" to tsdb.Options by @GiedriusS in https://github.com/prometheus/prometheus/pull/13398
* Restore more efficient version of NewPossibleNonCounterInfo annotation by @zenador in https://github.com/prometheus/prometheus/pull/13022
* fix slice copy in 1.20 by @tylitianrui in https://github.com/prometheus/prometheus/pull/13389
* Query Basics: link to rate by @tredondo in https://github.com/prometheus/prometheus/pull/10538
* Examples: link to `rate` for new users by @tredondo in https://github.com/prometheus/prometheus/pull/10535
* add cluster variable to Overview dashboard by @the-it in https://github.com/prometheus/prometheus/pull/13180
* Fix regressions introduced by #13242 by @pracucci in https://github.com/prometheus/prometheus/pull/13407
* promql: use natural sort in sort_by_label and sort_by_label_desc by @bobrik in https://github.com/prometheus/prometheus/pull/13411
* Native Histograms: support `native_histogram_min_bucket_factor` in scrape_config by @fatsheep9146 in https://github.com/prometheus/prometheus/pull/13222
* Add warnings for histogramRate applied with isCounter not matching counter/gauge histogram by @zenador in https://github.com/prometheus/prometheus/pull/13392
* remove obsolete build tag by @tylitianrui in https://github.com/prometheus/prometheus/pull/13416
* scripts: sort file list in embed directive by @jan--f in https://github.com/prometheus/prometheus/pull/13363
* build(deps): bump github.com/prometheus/prometheus from 0.48.0 to 0.48.1 in /documentation/examples/remote_storage by @dependabot in https://github.com/prometheus/prometheus/pull/13353
* build(deps): bump github.com/influxdata/influxdb from 1.11.2 to 1.11.4 in /documentation/examples/remote_storage by @dependabot in https://github.com/prometheus/prometheus/pull/13352
* Upgrade some golang dependencies for resty 2.11 by @iblancasa in https://github.com/prometheus/prometheus/pull/13417
* TestLabelValuesWithMatchers: Add test case by @aknuds1 in https://github.com/prometheus/prometheus/pull/13415
* build(deps): bump github.com/hetznercloud/hcloud-go/v2 from 2.4.0 to 2.6.0 by @dependabot in https://github.com/prometheus/prometheus/pull/13422
* chore(kubernetes): check preconditions earlier and avoid unnecessary checks or iterations by @machine424 in https://github.com/prometheus/prometheus/pull/13408
* build(deps): bump actions/setup-node from 3.8.1 to 4.0.1 by @dependabot in https://github.com/prometheus/prometheus/pull/13356
* otlp: Minor cosmetic fixes to the update script by @gouthamve in https://github.com/prometheus/prometheus/pull/13169
* promql: simplify Native Histogram arithmetics by @linasm in https://github.com/prometheus/prometheus/pull/13267
* fix(discovery tests): allow requireUpdate util to timeout in discovery/file… by @machine424 in https://github.com/prometheus/prometheus/pull/13380
* scrape_test.go: Increase scrape interval in TestScrapeLoopCache to re… by @machine424 in https://github.com/prometheus/prometheus/pull/13336
* Enhanced visibility for `promtool test rules` with JSON colored formatting by @rewanthtammana in https://github.com/prometheus/prometheus/pull/13342
* Remove csmarchbanks from remote write owners by @csmarchbanks in https://github.com/prometheus/prometheus/pull/13432
* storage: skip merging when no remote storage configured by @bboreham in https://github.com/prometheus/prometheus/pull/13427
* Add more context cancellation check at evaluation time by @yeya24 in https://github.com/prometheus/prometheus/pull/13437
* Optimize label values with matchers by taking shortcuts by @colega in https://github.com/prometheus/prometheus/pull/13426
* consoles: exclude iowait and steal from CPU Utilisation by @julianwiedmann in https://github.com/prometheus/prometheus/pull/9593
* Add automatic memory limit handling by @SuperQ in https://github.com/prometheus/prometheus/pull/13395
* Update OSSF badge link by @mmorel-35 in https://github.com/prometheus/prometheus/pull/13433
* SD Managers taking over responsibility for registration of debug metrics by @ptodev in https://github.com/prometheus/prometheus/pull/13375
* Optimize histogram iterators by @fpetkovski in https://github.com/prometheus/prometheus/pull/13340
* doc: Mark `mad_over_time` as experimental by @beorn7 in https://github.com/prometheus/prometheus/pull/13440
* TestHeadLabelValuesWithMatchers: Add test case by @aknuds1 in https://github.com/prometheus/prometheus/pull/13414
* update all go dependencies by @Nexucis in https://github.com/prometheus/prometheus/pull/13438
* build(deps): bump the k8s-io group with 2 updates by @dependabot in https://github.com/prometheus/prometheus/pull/13454
* build(deps): bump the go-opentelemetry-io group with 1 update by @dependabot in https://github.com/prometheus/prometheus/pull/13453
* build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 by @dependabot in https://github.com/prometheus/prometheus/pull/13355
* build(deps): bump bufbuild/buf-push-action from 342fc4cdcf29115a01cf12a2c6dd6aac68dc51e1 to a654ff18effe4641ebea4a4ce242c49800728459 by @dependabot in https://github.com/prometheus/prometheus/pull/13357
* tsdb: make transaction isolation data structures smaller by @bboreham in https://github.com/prometheus/prometheus/pull/13015
* Labels: Add DropMetricName function, used in PromQL by @bboreham in https://github.com/prometheus/prometheus/pull/13446
* tsdb: simplify internal series delete function by @bboreham in https://github.com/prometheus/prometheus/pull/13261
* Merging back release v2.49.1 to main by @Nexucis in https://github.com/prometheus/prometheus/pull/13463
* Rollback k8s.io requirements by @SuperQ in https://github.com/prometheus/prometheus/pull/13462
* scrape: Prometheus server support exemplar in native histogram by @fatsheep9146 in https://github.com/prometheus/prometheus/pull/13449
* ui: fix for deep linking in stacked graphs by @Loori-R in https://github.com/prometheus/prometheus/pull/13460
* otlptranslator/update-copy.sh: Fix sed command lines by @aknuds1 in https://github.com/prometheus/prometheus/pull/13464
* Change metric label for Puppet SD from 'http' to 'puppetdb' by @ptodev in https://github.com/prometheus/prometheus/pull/13447
* Fix last_over_time for native histograms by @fpetkovski in https://github.com/prometheus/prometheus/pull/13474
* Cut v2.50.0-rc.0 by @Nexucis in https://github.com/prometheus/prometheus/pull/13465
* Azure SD: check for nil before accessing and dereferencing by @darshanime in https://github.com/prometheus/prometheus/pull/13578
* Cut v2.50.0-rc.1 by @Nexucis in https://github.com/prometheus/prometheus/pull/13602
* Cut v2.50.0 by @Nexucis in https://github.com/prometheus/prometheus/pull/13612
</details>
## New Contributors
* @windsonsea made their first contribution in https://github.com/prometheus/prometheus/pull/11583
* @daniel-resdiary made their first contribution in https://github.com/prometheus/prometheus/pull/13283
* @Automaat made their first contribution in https://github.com/prometheus/prometheus/pull/13278
* @diogoteles08 made their first contribution in https://github.com/prometheus/prometheus/pull/13288
* @kalpadiptyaroy made their first contribution in https://github.com/prometheus/prometheus/pull/13313
* @zedGGs made their first contribution in https://github.com/prometheus/prometheus/pull/13293
* @nmdanny made their first contribution in https://github.com/prometheus/prometheus/pull/13335
* @kevinmingtarja made their first contribution in https://github.com/prometheus/prometheus/pull/13371
* @the-it made their first contribution in https://github.com/prometheus/prometheus/pull/13180
* @bobrik made their first contribution in https://github.com/prometheus/prometheus/pull/13411
* @iblancasa made their first contribution in https://github.com/prometheus/prometheus/pull/13417
* @rewanthtammana made their first contribution in https://github.com/prometheus/prometheus/pull/13342
**Full Changelog**: https://github.com/prometheus/prometheus/compare/v2.49.1...v2.50.0