• Matthew Slipper's avatar
    op-node: Add P2P metrics · b2d7a73e
    Matthew Slipper authored
    Adds the following peer-to-peer metrics:
    
    - Peer count
    - Stream count
    - Number of gossip events by type
    - Peer-to-peer bandwidth usage by direction
    
    I used libp2p's existing interfaces wherever I could. Note that we still need a backgorund goroutine to pull banwdiwth stats out of the libp2p bandwidth counter.
    
    Meta:
    
    - Fixes ENG-2338
    - Fixes ENG-2336
    - Fixes ENG-2329
    b2d7a73e
Name
Last commit
Last update
..
client Loading commit data...
cmd Loading commit data...
eth Loading commit data...
flags Loading commit data...
heartbeat Loading commit data...
metrics Loading commit data...
node Loading commit data...
p2p Loading commit data...
rollup Loading commit data...
sources Loading commit data...
testlog Loading commit data...
testutils Loading commit data...
version Loading commit data...
withdrawals Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
docker.go.work Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
service.go Loading commit data...