nim-libp2p/libp2p/protocols/pubsub
Giovanni Petrantoni b902c030a0
add metrics into chronosstream to identify peers agents (#458)
* add metrics into chronosstream to identify peers agents

* avoid too many agent strings

* use gauge instead of counter for stream metrics

* filter identity on /

* also track bytes traffic

* fix identity tracking closeimpl call

* add gossip rpc metrics

* fix missing metrics inclusions

* metrics fixes and additions

* add a KnownLibP2PAgents strdefine

* enforse toLowerAscii to agent names (metrics)

* incoming rpc metrics

* fix silly mistake in rpc metrics

* fix agent metrics logic

* libp2p_gossipsub_failed_publish metric

* message ids metrics

* libp2p_pubsub_broadcast_ihave metric improvement

* refactor expensive gossip metrics

* more detailed metrics

* metrics improvements

* remove generic metrics for `set` users

* small fixes, add debug counters

* fix counter and add missing subs metrics!

* agent metrics behind -d:libp2p_agents_metrics

* remove testing related code from this PR

* small rebroadcast metric fix

* fix small mistake

* add some guide to the readme in order to use new metrics

* add libp2p_gossipsub_peers_scores metric

* add protobuf metrics to understand bytes traffic precisely

* refactor gossipsub metrics

* remove unused variable

* add more metrics, refactor rebalance metrics

* avoid bad metric concurrent states

* use a stack structure for gossip mesh metrics

* refine sub metrics

* add received subs metrics fixes

* measure handlers of known topics

* sub/unsub counter

* unsubscribeAll log unknown topics

* expose a way to specify known topics at runtime
2021-01-08 14:21:24 +09:00
..
rpc add metrics into chronosstream to identify peers agents (#458) 2021-01-08 14:21:24 +09:00
floodsub.nim Gossipsub refactor (#490) 2020-12-19 15:43:32 +01:00
gossipsub.nim add metrics into chronosstream to identify peers agents (#458) 2021-01-08 14:21:24 +09:00
mcache.nim clean up peerid (#470) 2020-12-03 13:53:16 -06:00
peertable.nim small cleanups & docs (#347) 2020-09-04 18:31:43 +02:00
pubsub.nim add metrics into chronosstream to identify peers agents (#458) 2021-01-08 14:21:24 +09:00
pubsubpeer.nim add metrics into chronosstream to identify peers agents (#458) 2021-01-08 14:21:24 +09:00
timedcache.nim fix poor performance in LRU cache (#360) 2020-09-09 18:28:46 +02:00