aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/discv5/metrics.go')
-rw-r--r--p2p/discv5/metrics.go8
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)
+)