diff options
author | Dmitry Shulyak <yashulyak@gmail.com> | 2018-05-29 19:46:09 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-05-29 19:46:09 +0800 |
commit | 7677ec1f3414c1e3712bf33598f8780c3b76742b (patch) | |
tree | 821fd6567acc495b35d35f73f4f12a67bb6894b7 /p2p/discv5/metrics.go | |
parent | 84f8c0cc1fbe1ab9c128555392a82ba609820fef (diff) | |
download | dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar.gz dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar.bz2 dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar.lz dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar.xz dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.tar.zst dexon-7677ec1f3414c1e3712bf33598f8780c3b76742b.zip |
p2p/discv5: add egress/ingress traffic metrics to discv5 udp transport (#16369)
Diffstat (limited to 'p2p/discv5/metrics.go')
-rw-r--r-- | p2p/discv5/metrics.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/p2p/discv5/metrics.go b/p2p/discv5/metrics.go new file mode 100644 index 000000000..cb11d7eac --- /dev/null +++ b/p2p/discv5/metrics.go @@ -0,0 +1,8 @@ +package discv5 + +import "github.com/ethereum/go-ethereum/metrics" + +var ( + ingressTrafficMeter = metrics.NewRegisteredMeter("discv5/InboundTraffic", nil) + egressTrafficMeter = metrics.NewRegisteredMeter("discv5/OutboundTraffic", nil) +) |