发布日期: 2025-02-04
版本号: v3.2.0-rc.1

本次更新包含多项功能改进与问题修复:在标签替换规则中新增支持使用UTF-8字符及变量扩展功能,同时规则名称允许UTF-8字符(排除大括号)。新增远程OTLP协议的指标类型转换特性。服务发现模块增强了对OpenStack负载均衡器的识别能力,并优化了元数据存储至WAL的机制。Promtool工具新增了针对抓取间隔时长检查及忽略未知字段的选项。用户界面新增持久化隐藏空规则功能,API接口增加了查询结果限制参数。修复了远程写入的元数据错误、直方图类指标的WAL存储异常、警报页面重复设置项以及PromQL聚合函数处理直方图数据的问题,同时改进了状态接口的信息展示。

更新内容 (中文)

  • [变更] relabel: 替换操作现在可在 targetLabel 字段中使用 UTF-8 字符。注意 $chars>${chars>} 将被展开。该特性同样适用于 LabelMap 操作的 replacement 字段。#15851
  • [变更] rulefmt: 规则名称支持使用 UTF-8 字符({} 字符除外,因常规错误检查限制)#15851
  • [功能] remote/otlp: 新增特性标志 otlp-deltatocumulative,支持将 Delta 类型指标转换为 Cumulative 类型。#15165
  • [改进] openstack 服务发现: 支持发现 Octavia 负载均衡器。#15539
  • [改进] 抓取: 为 metadata-wal-records 特性添加自动指标的 WAL 元数据存储。#15837
  • [改进] promtool: 通过 too-long-scrape-interval 检查项支持抓取间隔时长校验。#15719
  • [改进] promtool: 新增 --ignore-unknown-fields 参数。#15706
  • [改进] 界面: 使 “隐藏空规则组” 选项状态持久化。#15807
  • [改进] web/api: 为 /query/query_range 接口添加 limit 参数。#15552
  • [改进] api: 在 /status 接口新增 Node 和 ServerTime 字段。#15784
  • [故障修复] remotewrite2: 修复无元数据指标的元数据错误问题。#15829
  • [故障修复] remotewrite2: 修复单位字段(unit)的传递问题。#15825
  • [故障修复] 抓取: 修复直方图和摘要类型的 WAL 元数据问题。#15832
  • [故障修复] 界面: 合并重复的 “告警页面设置” 配置项。#15810
  • [故障修复] PromQL: 修复直方图场景下 aggr_over_time> 函数的处理问题。#15711

更新内容 (原始)

  • [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
  • [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

下载链接