Add sync network context cache size metrics (#6049)

* Add sync network context cache size metrics
This commit is contained in:
Lion - dapplion
2024-07-09 18:31:26 +02:00
committed by GitHub
parent d46ac6c3d3
commit bde0428ac1
3 changed files with 58 additions and 21 deletions

View File

@@ -262,6 +262,16 @@ lazy_static! {
"sync_lookups_stuck_total",
"Total count of sync lookups that are stuck and dropped",
);
pub static ref SYNC_ACTIVE_NETWORK_REQUESTS: Result<IntGaugeVec> = try_create_int_gauge_vec(
"sync_active_network_requests",
"Current count of active network requests from sync",
&["type"],
);
pub static ref SYNC_UNKNOWN_NETWORK_REQUESTS: Result<IntCounterVec> = try_create_int_counter_vec(
"sync_unknwon_network_request",
"Total count of network messages received for unknown active requests",
&["type"],
);
/*
* Block Delay Metrics