prometheus v3.3.0 版本更新介绍
发布日期: 2025-04-18
版本号: v3.3.0
Prometheus 更新内容包括:为原生直方图实现了
idelta()和irate()功能;在 Scaleway 服务发现中添加了 IPv4 和 IPv6 公共地址标签;优化了 TSDB 重载块时的锁定和内存占用;允许 PromQL 的label_replace()支持 UTF-8 标签;增强了规则文件对锚点和别名的支持;改进了 UI 的时间格式、选择器复制、网格线和图例切换;提升了抓取性能、依赖评估并发性以及 WAL 回放时的内存效率;修复了抓取错误检测、原生直方图处理、空范围行为、规则评估等一系列问题;并调整了配置、Dockerfile 权限和 API 响应等细节。
更新内容 (中文)
- [功能] PromQL:为原生直方图实现
idelta()和irate()。#15853 - [增强] Scaleway SD:新增
__meta_scaleway_instance_public_ipv4_addresses和__meta_scaleway_instance_public_ipv6_addresses标签。#14228 - [增强] TSDB:减少重载块时的锁竞争。#12920
- [增强] PromQL:允许在
label_replace()中使用 UTF-8 标签。#15974 - [增强] Promtool:
tsdb create-blocks-from openmetrics现已支持从管道读取。#16011 - [增强] 规则:支持在规则文件中使用锚点和别名。#14957
- [增强] Dockerfile:使
/prometheus目录可写。#16073 - [增强] API:在
/api/v1/targets中为已丢弃的目标包含抓取池名称。#16085 - [增强] UI:改进时间格式和选择器的复制功能。#15999 #16165
- [增强] UI:恢复垂直网格线和图表图例系列切换说明。#16163 #16164
- [增强] Mixin:可通过
clusterLabel自定义cluster标签。#15826 - [性能] TSDB:通过优化路径减少头块操作的开销。#12659
- [性能] TSDB 与 Agent:减少 WAL 重放期间的内存占用。#15778
- [性能] Remote-Write:减少 WAL 重放期间的内存占用。#16197
- [性能] API:减少头部解析时的内存占用。#16001
- [性能] 规则:改进依赖评估,提升并发性能。#16039
- [性能] 抓取:提升原生直方图的抓取性能。#15731
- [性能] 抓取:改进创建时间戳的解析。#16072
- [错误修复] 抓取:在出错后推进缓存迭代器以避免误报重复检测。#16174
- [错误修复] 抓取:当禁用摄入时跳过原生直方图系列。#16218
- [错误修复] PromQL:修复原生直方图的计数器重置检测问题。#15902 #15987
- [错误修复] PromQL:修复空范围查询的不一致行为。#15970
- [错误修复] PromQL:修复
quantile_over_time()中不一致的注释。#16018 - [错误修复] PromQL:防止
label_join()产生重复项。#15975 - [错误修复] PromQL:在
scalar()、sort()和sort_desc()中忽略原生直方图。#15964 - [错误修复] PromQL:修复不兼容原生直方图间二元操作的注释。#15895
- [错误修复] 告警:在决定是否丢弃告警时考虑告警重标签。#15979
- [错误修复] 配置:当配置为空时将
GoGC设为默认值。#16052 - [错误修复] TSDB:修复 WAL 重放期间因非活动系列从头部移除并在下一个检查点前重新出现导致的未知系列错误及潜在数据丢失问题。#16060
- [错误修复] Scaleway SD:若公共 IP 为 IPv6 地址,将不再设置为
__meta_meta_scaleway_instance_public_ipv4。#14228 - [错误修复] UI:正确显示告警规则的
keep_firing_for值。#16211
更新内容 (原始)
- [FEATURE] PromQL: Implement
idelta()andirate()for native histograms. #15853 - [ENHANCEMENT] Scaleway SD: Add
__meta_scaleway_instance_public_ipv4_addressesand__meta_scaleway_instance_public_ipv6_addresseslabels. #14228 - [ENHANCEMENT] TSDB: Reduce locking while reloading blocks. #12920
- [ENHANCEMENT] PromQL: Allow UTF-8 labels in
label_replace(). #15974 - [ENHANCEMENT] Promtool:
tsdb create-blocks-from openmetricscan now read from a Pipe. #16011 - [ENHANCEMENT] Rules: Add support for anchors and aliases in rule files. #14957
- [ENHANCEMENT] Dockerfile: Make
/prometheuswritable. #16073 - [ENHANCEMENT] API: Include scrape pool name for dropped targets in
/api/v1/targets. #16085 - [ENHANCEMENT] UI: Improve time formatting and copying of selectors. #15999 #16165
- [ENHANCEMENT] UI: Bring back vertical grid lines and graph legend series toggling instructions. #16163 #16164
- [ENHANCEMENT] Mixin: The
clusterlabel can be customized usingclusterLabel. #15826 - [PERF] TSDB: Optimize some operations on head chunks by taking shortcuts. #12659
- [PERF] TSDB & Agent: Reduce memory footprint during WL replay. #15778
- [PERF] Remote-Write: Reduce memory footprint during WAL replay. #16197
- [PERF] API: Reduce memory footprint during header parsing. #16001
- [PERF] Rules: Improve dependency evaluation, enabling better concurrency. #16039
- [PERF] Scraping: Improve scraping performance for native histograms. #15731
- [PERF] Scraping: Improve parsing of created timestamps. #16072
- [BUGFIX] Scraping: Bump cache iteration after error to avoid false duplicate detections. #16174
- [BUGFIX] Scraping: Skip native histograms series when ingestion is disabled. #16218
- [BUGFIX] PromQL: Fix counter reset detection for native histograms. #15902 #15987
- [BUGFIX] PromQL: Fix inconsistent behavior with an empty range. #15970
- [BUGFIX] PromQL: Fix inconsistent annotation in
quantile_over_time(). #16018 - [BUGFIX] PromQL: Prevent
label_join()from producing duplicates. #15975 - [BUGFIX] PromQL: Ignore native histograms in
scalar(),sort()andsort_desc(). #15964 - [BUGFIX] PromQL: Fix annotations for binary operations between incompatible native histograms. #15895
- [BUGFIX] Alerting: Consider alert relabeling when deciding whether alerts are dropped. #15979
- [BUGFIX] Config: Set
GoGCto the default value in case of an empty configuration. #16052 - [BUGFIX] TSDB: Fix unknown series errors and potential data loss during WAL replay when inactive series are removed from the head and reappear before the next WAL checkpoint. #16060
- [BUGFIX] Scaleway SD: The public IP will no longer be set to
__meta_meta_scaleway_instance_public_ipv4if it is an IPv6 address. #14228 - [BUGFIX] UI: Display the correct value of Alerting rules’
keep_firing_for. #16211
下载链接
- prometheus-3.3.0.darwin-amd64.tar.gz
- prometheus-3.3.0.darwin-arm64.tar.gz
- prometheus-3.3.0.dragonfly-amd64.tar.gz
- prometheus-3.3.0.freebsd-386.tar.gz
- prometheus-3.3.0.freebsd-amd64.tar.gz
- prometheus-3.3.0.freebsd-arm64.tar.gz
- prometheus-3.3.0.freebsd-armv6.tar.gz
- prometheus-3.3.0.freebsd-armv7.tar.gz
- prometheus-3.3.0.illumos-amd64.tar.gz
- prometheus-3.3.0.linux-386.tar.gz
- prometheus-3.3.0.linux-amd64.tar.gz
- prometheus-3.3.0.linux-arm64.tar.gz
- prometheus-3.3.0.linux-armv5.tar.gz
- prometheus-3.3.0.linux-armv6.tar.gz
- prometheus-3.3.0.linux-armv7.tar.gz
- prometheus-3.3.0.linux-mips.tar.gz
- prometheus-3.3.0.linux-mips64.tar.gz
- prometheus-3.3.0.linux-mips64le.tar.gz
- prometheus-3.3.0.linux-mipsle.tar.gz
- prometheus-3.3.0.linux-ppc64.tar.gz
- prometheus-3.3.0.linux-ppc64le.tar.gz
- prometheus-3.3.0.linux-riscv64.tar.gz
- prometheus-3.3.0.linux-s390x.tar.gz
- prometheus-3.3.0.netbsd-386.tar.gz
- prometheus-3.3.0.netbsd-amd64.tar.gz
- prometheus-3.3.0.netbsd-arm64.tar.gz
- prometheus-3.3.0.netbsd-armv6.tar.gz
- prometheus-3.3.0.netbsd-armv7.tar.gz
- prometheus-3.3.0.windows-386.tar.gz
- prometheus-3.3.0.windows-386.zip
- prometheus-3.3.0.windows-amd64.tar.gz
- prometheus-3.3.0.windows-amd64.zip
- prometheus-3.3.0.windows-arm64.tar.gz
- prometheus-3.3.0.windows-arm64.zip
- prometheus-web-ui-3.3.0.tar.gz
- sha256sums.txt