Update docker.io/prom/prometheus Docker tag to v3.1.0
No issues with this by means of Docker-compose YAML automated GitOps minor update of the Docker container and on the K3s Kubernetes cluster by means of Flux with dependency update facilitated by Mend's Renovate Bot.
This MR contains the following updates:
Package | Update | Change |
---|---|---|
docker.io/prom/prometheus | major | v2.55.1 -> v3.1.0 |
Release Notes
prometheus/prometheus (docker.io/prom/prometheus)
v3.1.0
: 3.1.0 / 2025-01-02
What's Changed
- [SECURITY] upgrade golang.org/x/crypto to address reported CVE-2024-45337. #β15691
- [CHANGE] Notifier: Increment prometheus_notifications_errors_total by the number of affected alerts rather than per batch. #β15428
- [CHANGE] API: list rules field "groupNextToken:omitempty" renamed to "groupNextToken". #β15400
- [ENHANCEMENT] OTLP translate: keep identifying attributes in target_info. #β15448
- [ENHANCEMENT] Paginate rule groups, add infinite scroll to rules within groups. #β15677
- [ENHANCEMENT] TSDB: Improve calculation of space used by labels. #β13880
- [ENHANCEMENT] Rules: new metric rule_group_last_rule_duration_sum_seconds. #β15672
- [ENHANCEMENT] Observability: Export 'go_sync_mutex_wait_total_seconds_total' metric. #β15339
- [ENHANCEMEN] Remote-Write: optionally use a DNS resolver that picks a random IP. #β15329
- [PERF] Optimize
l=~".+"
matcher. #β15474, #β15684 - [PERF] TSDB: Cache all symbols for compaction . #β15455
- [PERF] TSDB: MemPostings: keep a map of label values slices. #β15426
- [PERF] Remote-Write: Remove interning hook. #β15456
- [PERF] Scrape: optimize string manipulation for experimental native histograms with custom buckets. #β15453
- [PERF] TSDB: reduce memory allocations. #β15465, #β15427
- [PERF] Storage: Implement limit in mergeGenericQuerier. #β14489
- [PERF] TSDB: Optimize inverse matching. #β14144
- [PERF] Regex: use stack memory for lowercase copy of string. #β15210
- [PERF] TSDB: When deleting from postings index, pause to unlock and let readers read. #β15242
- [BUGFIX] Main: Avoid possible segfault at exit. (#β15724)
- [BUGFIX] Rules: Do not run rules concurrently if uncertain about dependencies. #β15560
- [BUGFIX] PromQL: Adds test for
absent
,absent_over_time
andderiv
func with histograms. #β15667 - [BUGFIX] PromQL: Fix various bugs related to quoting UTF-8 characters. #β15531
- [BUGFIX] Scrape: fix nil panic after scrape loop reload. #β15563
- [BUGFIX] Remote-write: fix panic on repeated log message. #β15562
- [BUGFIX] Scrape: reload would ignore always_scrape_classic_histograms and convert_classic_histograms_to_nhcb configs. #β15489
- [BUGFIX] TSDB: fix data corruption in experimental native histograms. #β15482
- [BUGFIX] PromQL: Ignore histograms in all time related functions. #β15479
- [BUGFIX] OTLP receiver: Convert metric metadata. #β15416
- [BUGFIX] PromQL: Fix
resets
function for histograms. #β15527 - [BUGFIX] PromQL: Fix behaviour of
changes()
for mix of histograms and floats. #β15469 - [BUGFIX] PromQL: Fix behaviour of some aggregations with histograms. #β15432
- [BUGFIX] allow quoted exemplar keys in openmetrics text format. #β15260
- [BUGFIX] TSDB: fixes for rare conditions when loading write-behind-log (WBL). #β15380
- [BUGFIX]
round()
function did not remove__name__
label. #β15250 - [BUGFIX] Promtool: analyze block shows metric name with 0 cardinality. #β15438
- [BUGFIX] PromQL: Fix
count_values
for histograms. #β15422 - [BUGFIX] PromQL: fix issues with comparison binary operations with
bool
modifier and native histograms. #β15413 - [BUGFIX] PromQL: fix incorrect "native histogram ignored in aggregation" annotations. #β15414
- [BUGFIX] PromQL: Corrects the behaviour of some operator and aggregators with Native Histograms. #β15245
- [BUGFIX] TSDB: Always return unknown hint for first sample in non-gauge histogram chunk. #β15343
- [BUGFIX] PromQL: Clamp functions: Ignore any points with native histograms. #β15169
- [BUGFIX] TSDB: Fix race on stale values in headAppender. #β15322
- [BUGFIX] UI: Fix selector / series formatting for empty metric names. #β15340
- [BUGFIX] OTLP receiver: Allow colons in non-standard units. #β15710
v3.0.1
: 3.0.1 / 2024-11-28
The first bug fix release for Prometheus 3.
- [BUGFIX] Promql: Make subqueries left open. #β15431
- [BUGFIX] Fix memory leak when query log is enabled. #β15434
- [BUGFIX] Support utf8 names on /v1/label/:name/values endpoint. #β15399
v3.0.0
: 3.0.0 / 2024-11-14
This release includes new features such as a brand new UI and UTF-8 support enabled by default. As this marks the first new major version in seven years, several breaking changes are introduced. The breaking changes are mainly around the removal of deprecated feature flags and CLI arguments, and the full list can be found below. For users that want to upgrade we recommend to read through our migration guide.
- [CHANGE] Set the
GOMAXPROCS
variable automatically to match the Linux CPU quota. Use--no-auto-gomaxprocs
to disable it. Theauto-gomaxprocs
feature flag was removed. #β15376 - [CHANGE] Set the
GOMEMLIMIT
variable automatically to match the Linux container memory limit. Use--no-auto-gomemlimit
to disable it. Theauto-gomemlimit
feature flag was removed. #β15373 - [CHANGE] Scraping: Remove implicit fallback to the Prometheus text format in case of invalid/missing Content-Type and fail the scrape instead. Add ability to specify a
fallback_scrape_protocol
in the scrape config. #β15136 - [CHANGE] Remote-write: default enable_http2 to false. #β15219
- [CHANGE] Scraping: normalize "le" and "quantile" label values upon ingestion. #β15164
- [CHANGE] Scraping: config
scrape_classic_histograms
was renamed toalways_scrape_classic_histograms
. #β15178 - [CHANGE] Config: remove expand-external-labels flag, expand external labels env vars by default. #β14657
- [CHANGE] Disallow configuring AM with the v1 api. #β13883
- [CHANGE] regexp
.
now matches all characters (performance improvement). #β14505 - [CHANGE]
holt_winters
is now calleddouble_exponential_smoothing
and moves behind the experimental-promql-functions feature flag. #β14930 - [CHANGE] API: The OTLP receiver endpoint can now be enabled using
--web.enable-otlp-receiver
instead of--enable-feature=otlp-write-receiver
. #β14894 - [CHANGE] Prometheus will not add or remove port numbers from the target address.
no-default-scrape-port
feature flag removed. #β14160 - [CHANGE] Logging: the format of log lines has changed a little, along with the adoption of Go's Structured Logging package. #β14906
- [CHANGE] Don't create extra
_created
timeseries if feature-flagcreated-timestamp-zero-ingestion
is enabled. #β14738 - [CHANGE] Float literals and time durations being the same is now a stable fetaure. #β15111
- [CHANGE] UI: The old web UI has been replaced by a completely new one that is less cluttered and adds a few new features (PromLens-style tree view, better metrics explorer, "Explain" tab). However, it is still missing some features of the old UI (notably, exemplar display and heatmaps). To switch back to the old UI, you can use the feature flag
--enable-feature=old-ui
for the time being. #β14872 - [CHANGE] PromQL: Range selectors and the lookback delta are now left-open, i.e. a sample coinciding with the lower time limit is excluded rather than included. #β13904
- [CHANGE] Kubernetes SD: Remove support for
discovery.k8s.io/v1beta1
API version of EndpointSlice. This version is no longer served as of Kubernetes v1.25. #β14365 - [CHANGE] Kubernetes SD: Remove support for
networking.k8s.io/v1beta1
API version of Ingress. This version is no longer served as of Kubernetes v1.22. #β14365 - [CHANGE] UTF-8: Enable UTF-8 support by default. Prometheus now allows all UTF-8 characters in metric and label names. The corresponding
utf8-name
feature flag has been removed. #β14705 - [CHANGE] Console: Remove example files for the console feature. Users can continue using the console feature by supplying their own JavaScript and templates. #β14807
- [CHANGE] SD: Enable the new service discovery manager by default. This SD manager does not restart unchanged discoveries upon reloading. This makes reloads faster and reduces pressure on service discoveries' sources. The corresponding
new-service-discovery-manager
feature flag has been removed. #β14770 - [CHANGE] Agent mode has been promoted to stable. The feature flag
agent
has been removed. To run Prometheus in Agent mode, use the new--agent
cmdline arg instead. #β14747 - [CHANGE] Remove deprecated
remote-write-receiver
,promql-at-modifier
, andpromql-negative-offset
feature flags. #β13456, #β14526 - [CHANGE] Remove deprecated
storage.tsdb.allow-overlapping-blocks
,alertmanager.timeout
, andstorage.tsdb.retention
flags. #β14640, #β14643 - [FEATURE] OTLP receiver: Ability to skip UTF-8 normalization using
otlp.translation_strategy = NoUTF8EscapingWithSuffixes
configuration option. #β15384 - [FEATURE] Support config reload automatically - feature flag
auto-reload-config
. #β14769 - [ENHANCEMENT] Scraping, rules: handle targets reappearing, or rules moving group, when out-of-order is enabled. #β14710
- [ENHANCEMENT] Tools: add debug printouts to promtool rules unit testing #β15196
- [ENHANCEMENT] Scraping: support Created-Timestamp feature on native histograms. #β14694
- [ENHANCEMENT] UI: Many fixes and improvements. #β14898, #β14899, #β14907, #β14908, #β14912, #β14913, #β14914, #β14931, #β14940, #β14945, #β14946, #β14972, #β14981, #β14982, #β14994, #β15096
- [ENHANCEMENT] UI: Web UI now displays notifications, e.g. when starting up and shutting down. #β15082
- [ENHANCEMENT] PromQL: Introduce exponential interpolation for native histograms. #β14677
- [ENHANCEMENT] TSDB: Add support for ingestion of out-of-order native histogram samples. #β14850, #β14546
- [ENHANCEMENT] Alerts: remove metrics for removed Alertmanagers. #β13909
- [ENHANCEMENT] Kubernetes SD: Support sidecar containers in endpoint discovery. #β14929
- [ENHANCEMENT] Consul SD: Support catalog filters. #β11224
- [ENHANCEMENT] Move AM discovery page from "Monitoring status" to "Server status". #β14875
- [PERF] TSDB: Parallelize deletion of postings after head compaction. #β14975
- [PERF] TSDB: Chunk encoding: shorten some write sequences. #β14932
- [PERF] TSDB: Grow postings by doubling. #β14721
- [PERF] Relabeling: Optimize adding a constant label pair. #β12180
- [BUGFIX] UI: fix selector / series formatting for empty metric names. #β15341
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to always ignore native histograms. #β14941
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to treat Infinity consistently. #β14941
- [BUGFIX] OTLP receiver: Preserve colons when generating metric names in suffix adding mode (this mode is always enabled, unless one uses Prometheus as a library). #β15251
- [BUGFIX] Scraping: Unit was missing when using protobuf format. #β15095
- [BUGFIX] PromQL: Only return "possible non-counter" annotation when
rate
returns points. #β14910 - [BUGFIX] TSDB: Chunks could have one unnecessary zero byte at the end. #β14854
- [BUGFIX] "superfluous response.WriteHeader call" messages in log. #β14884
- [BUGFIX] PromQL: Unary negation of native histograms. #β14821
- [BUGFIX] PromQL: Handle stale marker in native histogram series (e.g. if series goes away and comes back). #β15025
- [BUGFIX] Autoreload: Reload invalid yaml files. #β14947
- [BUGFIX] Scrape: Do not override target parameter labels with config params. #β11029
Full Changelog: https://github.com/prometheus/prometheus/compare/v2.55.0...v3.0.0