yugabyte/yugabyte-db

[DocDB] Metrics for vector compaction and flush

已关闭

#28,578 创建于 2025年9月15日

 (2 条评论) (0 个反应) (1 位负责人)C (1,003 个派生)batch import
2025.2 Backport Required2026.1 Backport Requiredarea/docdbgood first issuekind/enhancementpriority/medium

仓库指标

星标
 (8,229 个星标)
PR 合并指标
 (平均合并 17天 21小时) (30 天内合并 92 个 PR)

描述

Jira Link: DB-18272

Description

Add metrics for vector compaction and flush related activities

Regular tables update the following compaction metrics:

  • rocksdb_compact_read_bytes
  • rocksdb_compact_write_bytes
  • compaction_tasks
  • rocksdb_compaction_times_micros_sum
  • rocksdb_compaction_times_micros_count

Need to think through the below counts/ Introduce specific counters for vector chunks

  • rocksdb_numfiles_in_singlecompaction_count
  • rocksdb_numfiles_in_singlecompaction_sum

Some of them are relevant to vector indexes. It would be good to update them for vector compactions as well. At the same time, we should add new metrics that describe vector compactions better.

Issue Type

kind/enhancement

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

贡献者指南