mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-04 05:00:02 +00:00
* Convert DeliveryService into optionally mountable MessagingClient
* Move SubscriptionManager to core layer (WakuNode)
* Ensure libwaku kernel_api/ still works (deprecated; removal pending)
* Create node_types.nim to allow WakuNode to compose subsystems cleanly
* Create node_telemetry.nim to centralize Prometheus types
* Remove unnecessary "ptr Waku" / "addr waku" indirection
* Rename Waku.startWaku -> Waku.start for upcoming Waku rename
* Write complete proc surface for SubscriptionManager (all intents expressible)
* Rename edgeFilterHealthLoop -> edgeFilterConnectionLoop ("Health" means monitoring)
* logosdelivery_start_node calls mountMessagingClient then starts
* libwaku and wakunode2 do not mount messagingClient
* misc refactors/moves, improvements, fixes
28 lines
810 B
Nim
28 lines
810 B
Nim
{.push raises: [].}
|
|
|
|
import metrics
|
|
|
|
declarePublicGauge waku_version,
|
|
"Waku version info (in git describe format)", ["version"]
|
|
|
|
declarePublicCounter waku_node_errors, "number of wakunode errors", ["type"]
|
|
|
|
declarePublicGauge waku_lightpush_peers, "number of lightpush peers"
|
|
|
|
declarePublicGauge waku_filter_peers, "number of filter peers"
|
|
|
|
declarePublicGauge waku_store_peers, "number of store peers"
|
|
|
|
declarePublicGauge waku_px_peers,
|
|
"number of peers (in the node's peerManager) supporting the peer exchange protocol"
|
|
|
|
declarePublicCounter waku_node_messages, "number of messages received", ["type"]
|
|
|
|
declarePublicHistogram waku_histogram_message_size,
|
|
"message size histogram in kB",
|
|
buckets = [
|
|
0.0, 1.0, 3.0, 5.0, 15.0, 50.0, 75.0, 100.0, 125.0, 150.0, 500.0, 700.0, 1000.0, Inf
|
|
]
|
|
|
|
{.pop.}
|