waku sync cached message metric (#3387)

This commit is contained in:
Simon-Pierre Vivier 2025-04-23 08:26:34 -04:00 committed by GitHub
parent 95b665fa45
commit 0304f063b8
3 changed files with 221 additions and 163 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,3 +19,6 @@ declarePublicCounter total_bytes_exchanged,
declarePublicCounter total_transfer_messages_exchanged,
"the number of messages sent and received by the transfer protocol", ["direction"]
declarePublicGauge total_messages_cached,
"the number of messages cached by the node after prunning"

View File

@ -362,6 +362,8 @@ proc periodicPrune(self: SyncReconciliation) {.async.} =
let count = self.storage.prune(time)
total_messages_cached.set(self.storage.length())
debug "periodic prune done", elements_pruned = count
proc idsReceiverLoop(self: SyncReconciliation) {.async.} =