prometheus v3.3.0-rc.0 版本更新介绍
发布日期: 2025-03-26
版本号: v3.3.0-rc.0
本次更新主要包含新功能、性能优化和错误修复三大类。新功能包括PromQL新增对原生直方图的idelta()和irate()支持,Scaleway服务发现添加IPv4/IPv6公网地址标签等。性能优化涉及TSDB减少块重载锁、降低内存占用、提升抓取效率等多项改进。错误修复重点解决了原生直方图计数器重置检测、标签重复生成、告警重标记处理等关键问题。此外还改进了UI时间格式显示、图形网格线等用户体验,并增强了规则文件、Docker配置等方面的功能支持。
更新内容 (中文)
- [功能] PromQL: 为原生直方图实现
idelta()
和irate()
函数 #15853 - [优化] Scaleway服务发现: 新增
__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 - [优化] 界面: 改进时间格式化和选择器复制功能 #15999 #16165
- [优化] 界面: 恢复垂直网格线和图表图例序列切换说明 #16163 #16164
- [优化] Mixin: 可通过
clusterLabel
自定义cluster
标签 #15826 - [性能] TSDB: 通过快捷路径优化头部块操作 #12659
- [性能] TSDB & Agent: 降低WAL回放期间的内存占用 #15778
- [性能] API: 减少头部解析时的内存占用 #16001
- [性能] 规则: 改进依赖评估以实现更好的并发性 #16039
- [性能] 抓取: 提升原生直方图的抓取性能 #15731
- [性能] 抓取: 优化创建时间戳的解析效率 #16072
- [修复] PromQL: 修复原生直方图的计数器重置检测 #15902 #15987
- [修复] Scaleway服务发现: 当公网IP为IPv6地址时不再将其设置为
__meta_meta_scaleway_instance_public_ipv4
#14228 - [修复] PromQL: 修复空范围查询的不一致行为 #15970
- [修复] PromQL: 修正
quantile_over_time()
的注释不一致问题 #16018 - [修复] PromQL: 防止
label_join()
产生重复结果 #15975 - [修复] PromQL: 在
scalar()
,sort()
和sort_desc()
中忽略原生直方图 #15964 - [修复] 告警: 考虑告警重标记以决定是否丢弃告警 #15979
- [修复] 配置: 当配置为空时将
GoGC
设为默认值 #16052 - [修复] TSDB: 修复WAL回放期间因非活跃序列被移除并在下次检查点前重现导致的未知序列错误及潜在数据丢失 #16060
- [修复] 抓取: 出错后增加缓存迭代以避免误判重复 #16174
- [修复] PromQL: 修复不兼容原生直方图间二元操作的注释问题 #15895
更新内容 (原始)
- [FEATURE] PromQL: Implement
idelta()
andirate()
for native histograms. #15853 - [ENHANCEMENT] Scaleway SD: Add
__meta_scaleway_instance_public_ipv4_addresses
and__meta_scaleway_instance_public_ipv6_addresses
labels. #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 openmetrics
can now read from a Pipe. #16011 - [ENHANCEMENT] Rules: Add support for anchors and aliases in rule files. #14957
- [ENHANCEMENT] Dockerfile: Make
/prometheus
writable. #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
cluster
label 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] 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] PromQL: Fix counter reset detection for native histograms. #15902 #15987
- [BUGFIX] Scaleway SD: The public IP will no longer be set to
__meta_meta_scaleway_instance_public_ipv4
if it is an IPv6 address. #14228 - [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] Alerting: Consider alert relabeling when deciding whether alerts are dropped. #15979
- [BUGFIX] Config: Set
GoGC
to 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] Scraping: Bump cache iteration after error to avoid false duplicate detections. #16174
- [BUGFIX] PromQL: Fix annotations for binary operations between incompatible native histograms. #15895
下载链接
- prometheus-3.3.0-rc.0.darwin-amd64.tar.gz
- prometheus-3.3.0-rc.0.darwin-arm64.tar.gz
- prometheus-3.3.0-rc.0.dragonfly-amd64.tar.gz
- prometheus-3.3.0-rc.0.freebsd-386.tar.gz
- prometheus-3.3.0-rc.0.freebsd-amd64.tar.gz
- prometheus-3.3.0-rc.0.freebsd-arm64.tar.gz
- prometheus-3.3.0-rc.0.freebsd-armv6.tar.gz
- prometheus-3.3.0-rc.0.freebsd-armv7.tar.gz
- prometheus-3.3.0-rc.0.illumos-amd64.tar.gz
- prometheus-3.3.0-rc.0.linux-386.tar.gz
- prometheus-3.3.0-rc.0.linux-amd64.tar.gz
- prometheus-3.3.0-rc.0.linux-arm64.tar.gz
- prometheus-3.3.0-rc.0.linux-armv5.tar.gz
- prometheus-3.3.0-rc.0.linux-armv6.tar.gz
- prometheus-3.3.0-rc.0.linux-armv7.tar.gz
- prometheus-3.3.0-rc.0.linux-mips.tar.gz
- prometheus-3.3.0-rc.0.linux-mips64.tar.gz
- prometheus-3.3.0-rc.0.linux-mips64le.tar.gz
- prometheus-3.3.0-rc.0.linux-mipsle.tar.gz
- prometheus-3.3.0-rc.0.linux-ppc64.tar.gz
- prometheus-3.3.0-rc.0.linux-ppc64le.tar.gz
- prometheus-3.3.0-rc.0.linux-riscv64.tar.gz
- prometheus-3.3.0-rc.0.linux-s390x.tar.gz
- prometheus-3.3.0-rc.0.netbsd-386.tar.gz
- prometheus-3.3.0-rc.0.netbsd-amd64.tar.gz
- prometheus-3.3.0-rc.0.netbsd-arm64.tar.gz
- prometheus-3.3.0-rc.0.netbsd-armv6.tar.gz
- prometheus-3.3.0-rc.0.netbsd-armv7.tar.gz
- prometheus-3.3.0-rc.0.windows-386.tar.gz
- prometheus-3.3.0-rc.0.windows-386.zip
- prometheus-3.3.0-rc.0.windows-amd64.tar.gz
- prometheus-3.3.0-rc.0.windows-amd64.zip
- prometheus-3.3.0-rc.0.windows-arm64.tar.gz
- prometheus-3.3.0-rc.0.windows-arm64.zip
- prometheus-web-ui-3.3.0-rc.0.tar.gz
- sha256sums.txt