发布日期: 2025-02-17
版本号: v3.2.0

Prometheus v3.2.0版本更新内容如下:
变更:支持在relabel操作的targetLabelLabelMapreplacement字段中使用UTF-8字符,允许规则名称使用UTF-8字符(不含{})。
新功能:新增远程OTLP的delta转cumulative指标类型转换功能(需启用otlp-deltatocumulative标志)。
增强:OpenStack服务发现支持识别Octavia负载均衡器;为WAL添加自动指标的元数据记录;Promtool新增检查过长抓取间隔的功能及--ignore-unknown-fields选项;UI中“隐藏空规则”设置持久化;API的/query/query_range接口增加limit参数,/status接口新增Node和ServerTime字段。
性能优化:推迟计算被丢弃目标的标签至UI需要时,减少资源消耗。
错误修复:修复远程写入无元数据指标的异常、单位字段未正确传递的问题;修正WAL中直方图和摘要的元数据记录;合并UI重复的“警报页面设置”选项;修复PromQL聚合函数处理直方图的逻辑。

更新内容 (中文)

Prometheus v3.2.0 更新日志

  • [变更] relabel: targetLabel 字段现支持使用 UTF-8 字符。注意 $字符>${字符>} 将被展开。该特性也适用于 LabelMap 操作的 replacement 字段。#15851
  • [变更] rulefmt: 规则名称现支持使用 UTF-8 字符(除 {} 字符,因常见错误检查限制)。#15851
  • [功能] 远程/otlp: 新增功能标志 otlp-deltatocumulative 以支持从 delta 到 cumulative 的转换。#15165
  • [优化] openstack 服务发现: 支持发现 Octavia 负载均衡器。#15539
  • [优化] 抓取: 为 metadata-wal-records 功能添加自动指标的元数据到 WAL。#15837
  • [优化] promtool: 通过 lint 选项 too-long-scrape-interval 支持抓取间隔检查。#15719
  • [优化] promtool: 新增 –ignore-unknown-fields 选项。#15706
  • [优化] 界面: 使「隐藏空规则」设置持久化。#15807
  • [优化] web/api: 在 /query/query_range 接口添加 limit 参数。#15552
  • [优化] api: 在 /status 接口添加 Node 和 ServerTime 字段。#15784
  • [性能] 抓取: 延迟计算被丢弃目标的标签,直到界面需要时再生成。#15261
  • [修复] remotewrite2: 修复无元数据指标的元数据无效问题。#15829
  • [修复] remotewrite2: 修复单位字段传播问题。#15825
  • [修复] 抓取: 修复直方图和摘要的 WAL 元数据问题。#15832
  • [修复] 界面: 合并重复的「警报页面设置」模块。#15810
  • [修复] PromQL: 修复 aggr_over_time> 函数处理直方图的错误。#15711

更新内容 (原始)

Prometheus v3.2.0 Changelog

  • [CHANGE] relabel: Replace actions can now use UTF-8 characters in targetLabel field. Note that $<chars> or ${<chars>} will be expanded. This also apply to replacement field for LabelMap action. #15851
  • [CHANGE] rulefmt: Rule names can use UTF-8 characters, except { and } characters (due to common mistake checks). #15851
  • [FEATURE] remote/otlp: Add feature flag otlp-deltatocumulative to support conversion from delta to cumulative. #15165
  • [ENHANCEMENT] openstack SD: Discover Octavia loadbalancers. #15539
  • [ENHANCEMENT] scrape: Add metadata for automatic metrics to WAL for metadata-wal-records feature. #15837
  • [ENHANCEMENT] promtool: Support linting of scrape interval, through lint option too-long-scrape-interval. #15719
  • [ENHANCEMENT] promtool: Add –ignore-unknown-fields option. #15706
  • [ENHANCEMENT] ui: Make “hide empty rules” and hide empty rules" persistent #15807
  • [ENHANCEMENT] web/api: Add a limit parameter to /query and /query_range. #15552
  • [ENHANCEMENT] api: Add fields Node and ServerTime to /status. #15784
  • [PERF] Scraping: defer computing labels for dropped targets until they are needed by the UI. #15261
  • [BUGFIX] remotewrite2: Fix invalid metadata bug for metrics without metadata. #15829
  • [BUGFIX] remotewrite2: Fix the unit field propagation. #15825
  • [BUGFIX] scrape: Fix WAL metadata for histograms and summaries. #15832
  • [BUGFIX] ui: Merge duplicate “Alerts page settings” sections. #15810
  • [BUGFIX] PromQL: Fix <aggr_over_time> functions with histograms. #15711

下载链接