Defines the core networking infrastructure for the Safe Network, which is based around the libp2p stack.
Use the network-metrics
feature flag on the node/client to enable libp2p metrics. This records libp2p protocol / Swarm events and exposes them in the OpenMetrics format. This can be imported inside a Grafana dashboard, as seen here.
A webserver is run per node that will expose the metrics recorded by that node. Check the info level log to find webserver's port, Metrics server on http://127.0.0.1:xxxx/metrics