Skip to content

Commit e5caf0a

Browse files
register_metrics updated to add STORE_BEACON_STATE_CACHE_MEMORY_SIZE
1 parent 291cad9 commit e5caf0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

beacon_node/store/src/hot_cold_store.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,10 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
503503
&metrics::STORE_BEACON_STATE_CACHE_SIZE,
504504
state_cache.len() as i64,
505505
);
506+
metrics::set_gauge(
507+
&metrics::STORE_BEACON_STATE_CACHE_MEMORY_SIZE,
508+
state_cache.cached_bytes() as i64,
509+
);
506510
metrics::set_gauge_vec(
507511
&metrics::STORE_BEACON_HDIFF_BUFFER_CACHE_SIZE,
508512
HOT_METRIC,

0 commit comments

Comments
 (0)