Skip to content

Commit

Permalink
feat: add RocksDB block cache hit/miss count (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyasvielEin authored Jan 30, 2025
1 parent e6ed7d9 commit 2e3be49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down

0 comments on commit 2e3be49

Please sign in to comment.