Good morning,
in my private IPFS network I have a gateway connected to other IPFS nodes. I would like to be able to measure the amount of data passing between the gateway to each of the nodes on the network. Can anyone give me a suggestion on how to implement this functionality?
You can look at bitswap stats with ipfs stats bw
.
Alternatively, if you just want to know about blocks exchanged, you can get the current “ledger” for a peer with ipfs bitswap ledger
. However, this is cleared on disconnect.