• 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
..
api.go Loading commit data...
client.go Loading commit data...
comms.go Loading commit data...
config.go Loading commit data...
log.go Loading commit data...
node.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...