Any suggestion or code snippets? Thanks in advance !
Seems that there has been many discussions on the collection of metrics, relevant threads:
And
And
-
https://github.com/libp2p/go-libp2p-daemon/pull/92
(Had to do 3 posts due to discuss.libp2p.io limitations)