Releases: prometheus/prometheus
2.51.2 / 2024-04-09
2.51.1 / 2024-03-27
Bugfix release.
2.51.0+dedupelabels / 2024-03-19
Special release build that incorporates performance improvements using
the dedupelabels
Go tag. The new labels data structure deduplicates label names
and values via symbol or intern tables, reducing memory usage.
2.51.0 / 2024-03-18
This version is built with Go 1.22.1.
There is a new optional build tag "dedupelabels", which should reduce memory consumption (#12304).
It is off by default; there will be an optional alternative image to try it out.
- [CHANGE] Scraping: Do experimental timestamp alignment even if tolerance is bigger than 1% of scrape interval #13624, #13737
- [FEATURE] Alerting: Relabel rules for AlertManagerConfig; allows routing alerts to different alertmanagers #12551, #13735
- [FEATURE] API: add limit param to series, label-names and label-values APIs #13396
- [FEATURE] UI (experimental native histograms): Add native histogram chart to Table view #13658
- [FEATURE] Promtool: Add a "tsdb dump-openmetrics" to dump in OpenMetrics format. #13194
- [FEATURE] PromQL (experimental native histograms): Add histogram_avg function #13467
- [ENHANCEMENT] Rules: Evaluate independent rules concurrently #12946, #13527
- [ENHANCEMENT] Scraping (experimental native histograms): Support exemplars #13488
- [ENHANCEMENT] Remote Write: Disable resharding during active retry backoffs #13562
- [ENHANCEMENT] Observability: Add native histograms to latency/duration metrics #13681
- [ENHANCEMENT] Observability: Add 'type' label to prometheus_tsdb_head_out_of_order_samples_appended_total #13607
- [ENHANCEMENT] API: Faster generation of targets into JSON #13469, #13484
- [ENHANCEMENT] Scraping, API: Use faster compression library #10782
- [ENHANCEMENT] OpenTelemetry: Performance improvements in OTLP parsing #13627
- [ENHANCEMENT] PromQL: Optimisations to reduce CPU and memory #13448, #13536
- [BUGFIX] PromQL: Constrain extrapolation in rate() to half of sample interval #13725
- [BUGFIX] Remote Write: Stop slowing down when a new WAL segment is created #13583, #13628
- [BUGFIX] PromQL: Fix wrongly scoped range vectors with @ modifier #13559
- [BUGFIX] Kubernetes SD: Pod status changes were not discovered by Endpoints service discovery #13337
- [BUGFIX] Azure SD: Fix 'error: parameter virtualMachineScaleSetName cannot be empty' (#13702)
- [BUGFIX] Remote Write: Fix signing for AWS sigv4 transport #13497
- [BUGFIX] Observability: Exemplars emitted by Prometheus use "trace_id" not "traceID" #13589
2.45.4 / 2024-03-18
- [BUGFIX] Remote read: Release querier resources before encoding the results. #13777
2.51.0-rc.0+dedupelabels / 2024-03-14
Special release candidate build that incorporates performance improvements using
the dedupelabels
Go tag. The new labels data structure deduplicates label names
and values via symbol or intern tables, reducing memory usage.
2.51.0-rc.0 / 2024-03-07
This version is built with Go 1.22.1.
There is a new optional build tag "dedupelabels", which should reduce memory consumption (#12304).
It is off by default; there is an optional alternative image prom/prometheus:v2.51.0-rc.0-dedupelabels
to try it out.
- [CHANGE] Scraping: Do experimental timestamp alignment even if tolerance is bigger than 1% of scrape interval #13624, #13737
- [FEATURE] Alerting: Relabel rules for AlertManagerConfig; allows routing alerts to different alertmanagers #12551, #13735
- [FEATURE] API: add limit param to series, label-names and label-values APIs #13396
- [FEATURE] UI (experimental native histograms): Add native histogram chart to Table view #13658
- [FEATURE] Promtool: Add a "tsdb dump-openmetrics" to dump in OpenMetrics format. #13194
- [FEATURE] PromQL (experimental native histograms): Add histogram_avg function #13467
- [ENHANCEMENT] Rules: Evaluate independent rules concurrently #12946, #13527
- [ENHANCEMENT] Scraping (experimental native histograms): Support exemplars #13488
- [ENHANCEMENT] Remote Write: Disable resharding during active retry backoffs #13562
- [ENHANCEMENT] Observability: Add native histograms to latency/duration metrics #13681
- [ENHANCEMENT] Observability: Add 'type' label to
prometheus_tsdb_head_out_of_order_samples_appended_total
#13607 - [ENHANCEMENT] API: Faster generation of targets into JSON #13469, #13484
- [ENHANCEMENT] Scraping, API: Use faster compression library #10782
- [ENHANCEMENT] OpenTelemetry: Performance improvements in OTLP parsing #13627
- [ENHANCEMENT] PromQL: Optimisations to reduce CPU and memory #13448, #13536
- [BUGFIX] PromQL: Constrain extrapolation in
rate()
to half of sample interval #13725 - [BUGFIX] Remote Write: Stop slowing down when a new WAL segment is created #13583, #13628
- [BUGFIX] PromQL: Fix wrongly scoped range vectors with @ modifier #13559
- [BUGFIX] Kubernetes SD: Pod status changes were not discovered by Endpoints service discovery #13337
- [BUGFIX] Azure SD: Fix 'error: parameter virtualMachineScaleSetName cannot be empty' (#13702)
- [BUGFIX] Remote Write: Fix signing for AWS sigv4 transport #13497
- [BUGFIX] Observability: Exemplars emitted by Prometheus use "trace_id" not "traceID" #13589
2.50.1 / 2024-02-26
This is a bug-fix release for an issue that broke the /metadata
API.
- [BUGFIX] API: Fix metadata API using wrong field names. #13633
Thanks to @itsmylife for the fix.
2.50.0 / 2024-02-22
- [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
andsort_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
Commits
- Enable reusing memory when converting between histogram types by @fpetkovski in #13215
- Append Created Timestamps by @ArthurSens in #12733
- tsdb: use Go standard errors by @mmorel-35 in #13155
- Sync golangci-lint version by @SuperQ in #13269
- tsdb: remove unused option by @GiedriusS in #13282
- Tweak line wrappings in docs/storage.md by @windsonsea in #11583
chunks.Reader
: Fix typo inChunkOrIterable
doc string by @aknuds1 in #13205- Allow non-default registry to be used for metrics of SD components by @ptodev in #13023
- postings: use Loser Tree for merge by @bboreham in #12878
- Get VM Scale Set NIC by @daniel-resdiary in #13283
- Reuse float histogram objects by @fpetkovski in #13276
- Document feature flag 'created-timestamp-zero-ingestion' by @ArthurSens in #13279
- kuma_sd: Extend Kuma SD configuration to allow users to specify ClientId by @Automaat in #13278
- scripts: Add minimal permissions to script golangci-lint.yml by @diogoteles08 in #13288
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager by @mmorel-35 in #13294
- Dedup code handling getting network interface by @daniel-resdiary in #13285
- scrape: consistent function names for metadata by @bboreham in #13177
- relabel: improve logic for target labels by @bboreham in #13308
- Move metric type definitions to common/model by @bboreham in #13176
- scrape: simplify TargetsActive function by @bboreham in #13167
- bug: Fix quality value in accept header by @kalpadiptyaroy in #13313
- Fix reusing float histograms by @fpetkovski in #13289
- Adding small test update for temp dir using t.TempDir by @zedGGs in #13293
- Revert "Adding small test update for temp dir using t.TempDir (#13293)" by @bboreham in #13344
- agent: make the global hash lookup table smaller by @bboreham in #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 #13354
- Bump client_golang to v1.18.0 by @tpaschalis in #13373
- remote: consider storage.ErrTooOldSample as non-retryable by returning 400 by @nmdanny in #13335
- Drop old inmemory samples by @marctc in #13002
- ui: fix handling of scalar and string in isHeatmapData by @kevinmingtarja in #13371
- tsdb/{index,compact}: allow using custom postings encoding format by @GiedriusS in #13242
- build(deps): bump actions/setup-go from 3.5.0 to 5.0.0 in /scripts by @dependabot in #13362
- build(deps): bump github/codeql-action from 2.22.8 to 3.22.12 by @dependabot in #13358
- put @Nexucis has a release shepherd for the next release by @Nexucis in #13383
- protobuf: add unit parser by @vesari in #13299
- Add analyze histograms command to promtool by @zenador in #12331
- tsdb: add enable overlapping compaction by @GiedriusS in #13393
- tsdb/compact: fix passing merge func by @GiedriusS in #13391
- allow setting multiple matchers to "promtool tsdb dump" by @machine424 in #13296
- Merge 2.49.0 release to main by @bwplotka in #13399
- tsdb/main: wire "EnableOverlappingCompaction" to tsdb.Options by @GiedriusS in #13398
- Restore more efficient version of NewPossibleNonCounterInfo annotation by @zenador in #13022
- fix slice copy in 1.20 by @tylitianrui in #13389
- Query Basics: link to rate by @tredondo in #10538
- Examples: link to
rate
for new users by @tredondo in #10535 - add cluster variable to Overview dashboard by @the-it in #13180
- Fix regressions introduced by #13242 by @pracucci in #13407
- promql: use natural sort in sort_by_label and sort_by_label_desc by @bobrik in #13411
- Native Histograms: support
native_histogram_min_bucket_factor
in scrape_config by @fatsheep9146 in #13222 - Add warnings for histogramRate applied with isCounter not matching counter/gauge histogram by @zenador in #13392
- remove obsolete build tag by @tylitianrui in #13416
- scripts: sort file list in embed directive by @jan--f in #13363
- build(deps): bump github.com/prometheus/prometheus from 0.48.0 to 0.48.1 in /documentation/examples/remote_storage by @dependabot in #13353
- build(deps): bump github.com/influxdata/influxdb from 1.11.2 to 1.11.4 in /documentation/examples/remote_storage by @dependabot in #13352
- Upgrade some golang dependencies for resty 2.11 by @iblancasa in #13417
- TestLabelValuesWithMatchers: Add test case by @aknuds1 in #13415
- build(deps): bump github.com/hetznercloud/hcloud-go/v2 from 2.4.0 to 2.6.0 by @dependabot in #13422
- chore(kubernetes): check preconditions earlier and avoid unnecessary checks or iterations by @machine424 in #13408
- build(deps): bump actions/setup-node from 3.8.1 to 4.0.1 by @dependabot in #13356
- otlp: Minor cosmetic fixes to the update script by @gouthamve in #13169
- promql: simplify Native Histogram...
2.50.0-rc.1 / 2024-02-19
[BUGFIX] Azure SD: Fix SD crashing when it finds a VM scale set. #13578