Skip to content

Commit 9dd9f2a

Browse files
committed
chore(logging): add store/lightpush peer count, fix style
1 parent b40ab4b commit 9dd9f2a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

waku/v2/node/wakunode2_setup_metrics.nim

+9-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import
99
metrics/chronos_httpserver,
1010
./config,
1111
./wakunode2,
12-
../protocol/waku_filter
12+
../protocol/waku_filter,
13+
../protocol/waku_store,
14+
../protocol/waku_lightpush
1315

1416
logScope:
1517
topics = "wakunode.setup.metrics"
@@ -56,11 +58,13 @@ proc startMetricsLog*() =
5658
cumulativeErrors = totalErrors
5759
cumulativeConns = totalConnections
5860
info "Total connections initiated", count = freshConnCount
59-
info "Total Messages", count = parseCollectorIntoF64(waku_node_messages)
60-
info "Total SWAP peers", count = parseCollectorIntoF64(waku_swap_peers_count)
61-
info "Total FILTER peers", count = parseCollectorIntoF64(waku_filter_peers)
61+
info "Total messages", count = parseCollectorIntoF64(waku_node_messages)
62+
info "Total swap peers", count = parseCollectorIntoF64(waku_swap_peers_count)
63+
info "Total filter peers", count = parseCollectorIntoF64(waku_filter_peers)
64+
info "Total store peers", count = parseCollectorIntoF64(waku_store_peers)
65+
info "Total lightpush peers", count = parseCollectorIntoF64(waku_lightpush_peers)
6266
info "Total errors", count = freshErrorCount
63-
info "Total subscribed topics", count = parseCollectorIntoF64(waku_filter_subscribers)
67+
info "Total active filter subscriptions", count = parseCollectorIntoF64(waku_filter_subscribers)
6468

6569
discard setTimer(Moment.fromNow(30.seconds), logMetrics)
6670

0 commit comments

Comments
 (0)