[DocDB] Simplify rocksdb cache metrics
Author: es1024Created Sep 29, 2026Updated Sep 29, 2026
Labelskind/enhancementarea/docdbpriority/mediumstatus/awaiting-triage
Jira Link: DB-23904
Description
Context: #34118
The rocksdb cache updates a variety of metrics:
- per-rocksdb statistics (AtomicGauge under the hood, batched per-RPC on some code paths)
- per-tablet
CacheMetrics(primarily Counter, which is a striped atomic but updates are never batched)
CacheMetrics incremented on, e.g., the cache lookup path, are mostly redundant -- metrics for cache lookups/hits/misses simply expose information that could be derived from the CACHE_HIT/CACHE_MISS statistics.
Additionally, we also track single vs multi-hit. But these metrics are generally not very useful, and could be removed, since updating these metrics takes up a fair amount of time spent doing cache lookups.
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.
Source: yugabyte/yugabyte-db