aboutsummaryrefslogtreecommitdiffstats
path: root/eth/metrics.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-27 01:42:27 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-01 00:00:00 +0800
commit2c8ed76e01161d9fe4e69064404cd888b4e327f3 (patch)
tree833493bed3bb120bfceda78c134005d3c46e97b0 /eth/metrics.go
parent393d675690923207746ac800568faacae723f251 (diff)
downloaddexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar.gz
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar.bz2
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar.lz
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar.xz
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.tar.zst
dexon-2c8ed76e01161d9fe4e69064404cd888b4e327f3.zip
eth: start cleaning up old protocol implementation, add metrics
Diffstat (limited to 'eth/metrics.go')
-rw-r--r--eth/metrics.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/eth/metrics.go b/eth/metrics.go
new file mode 100644
index 000000000..e056233f4
--- /dev/null
+++ b/eth/metrics.go
@@ -0,0 +1,26 @@
+package eth
+
+import "github.com/rcrowley/go-metrics"
+
+var (
+ propTxnInPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/txns/in/packets", metrics.DefaultRegistry)
+ propTxnInTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/txns/in/traffic", metrics.DefaultRegistry)
+ propTxnOutPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/txns/out/packets", metrics.DefaultRegistry)
+ propTxnOutTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/txns/out/traffic", metrics.DefaultRegistry)
+ propHashInPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/hashes/in/packets", metrics.DefaultRegistry)
+ propHashInTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/hashes/in/traffic", metrics.DefaultRegistry)
+ propHashOutPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/hashes/out/packets", metrics.DefaultRegistry)
+ propHashOutTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/hashes/out/traffic", metrics.DefaultRegistry)
+ propBlockInPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/blocks/in/packets", metrics.DefaultRegistry)
+ propBlockInTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/blocks/in/traffic", metrics.DefaultRegistry)
+ propBlockOutPacketsMeter = metrics.GetOrRegisterMeter("eth/prop/blocks/out/packets", metrics.DefaultRegistry)
+ propBlockOutTrafficMeter = metrics.GetOrRegisterMeter("eth/prop/blocks/out/traffic", metrics.DefaultRegistry)
+ reqHashInPacketsMeter = metrics.GetOrRegisterMeter("eth/req/hashes/in/packets", metrics.DefaultRegistry)
+ reqHashInTrafficMeter = metrics.GetOrRegisterMeter("eth/req/hashes/in/traffic", metrics.DefaultRegistry)
+ reqHashOutPacketsMeter = metrics.GetOrRegisterMeter("eth/req/hashes/out/packets", metrics.DefaultRegistry)
+ reqHashOutTrafficMeter = metrics.GetOrRegisterMeter("eth/req/hashes/out/traffic", metrics.DefaultRegistry)
+ reqBlockInPacketsMeter = metrics.GetOrRegisterMeter("eth/req/blocks/in/packets", metrics.DefaultRegistry)
+ reqBlockInTrafficMeter = metrics.GetOrRegisterMeter("eth/req/blocks/in/traffic", metrics.DefaultRegistry)
+ reqBlockOutPacketsMeter = metrics.GetOrRegisterMeter("eth/req/blocks/out/packets", metrics.DefaultRegistry)
+ reqBlockOutTrafficMeter = metrics.GetOrRegisterMeter("eth/req/blocks/out/traffic", metrics.DefaultRegistry)
+)