From 2e3be49fb5e24109b6198493749a495948af7a4b Mon Sep 17 00:00:00 2001 From: Illyasviel von Einzbern <69078819+IllyasvielEin@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:56:33 +0800 Subject: [PATCH] feat: add RocksDB block cache hit/miss count (#55) --- exporter/exporter.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exporter/exporter.go b/exporter/exporter.go index 4862ec21..1e1d93a4 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -165,6 +165,16 @@ func NewKvrocksExporter(kvrocksURI string, opts Options) (*Exporter, error) { "used_cpu_sys": "cpu_sys_seconds_total", "used_cpu_user": "cpu_user_seconds_total", + + // # RocksDB + "block_cache_hit": "block_cache_hit_total", + "block_cache_miss": "block_cache_miss_total", + "block_cache_data_hit": "block_cache_data_hit_total", + "block_cache_data_miss": "block_cache_data_miss_total", + "block_cache_index_hit": "block_cache_index_hit_total", + "block_cache_index_miss": "block_cache_index_miss_total", + "block_cache_filter_hit": "block_cache_filter_hit_total", + "block_cache_filter_miss": "block_cache_filter_miss_total", }, }