发布日期: 2025-01-02
版本号: v3.1.0

本次更新包含安全修复、功能调整、性能优化及错误修复,主要内容如下:安全方面升级golang.org/x/crypto解决CVE-2024-45337漏洞;功能调整涉及通知错误计数方式优化、API字段重命名;新增规则分页、标签空间计算优化等增强特性;性能优化涵盖TSDB内存管理、正则匹配、远程写入等模块的效率提升;错误修复重点处理了PromQL函数对直方图的兼容性问题、数据损坏隐患、界面崩溃问题及配置重载失效等,涉及指标聚合、时间序列存储、OTLP接收器等组件的稳定性改进。

更新内容 (中文)

详见原始内容

更新内容 (原始)

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 and deriv 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

下载链接