github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/neatptc/fetcher/metrics.go (about) 1 package fetcher 2 3 import ( 4 "github.com/neatlab/neatio/utilities/metrics" 5 ) 6 7 var ( 8 propAnnounceInMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/announces/in", nil) 9 propAnnounceOutTimer = metrics.NewRegisteredTimer("eth/fetcher/prop/announces/out", nil) 10 propAnnounceDropMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/announces/drop", nil) 11 propAnnounceDOSMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/announces/dos", nil) 12 13 propBroadcastInMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/broadcasts/in", nil) 14 propBroadcastOutTimer = metrics.NewRegisteredTimer("eth/fetcher/prop/broadcasts/out", nil) 15 propBroadcastDropMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/broadcasts/drop", nil) 16 propBroadcastDOSMeter = metrics.NewRegisteredMeter("eth/fetcher/prop/broadcasts/dos", nil) 17 18 headerFetchMeter = metrics.NewRegisteredMeter("eth/fetcher/fetch/headers", nil) 19 bodyFetchMeter = metrics.NewRegisteredMeter("eth/fetcher/fetch/bodies", nil) 20 21 headerFilterInMeter = metrics.NewRegisteredMeter("eth/fetcher/filter/headers/in", nil) 22 headerFilterOutMeter = metrics.NewRegisteredMeter("eth/fetcher/filter/headers/out", nil) 23 bodyFilterInMeter = metrics.NewRegisteredMeter("eth/fetcher/filter/bodies/in", nil) 24 bodyFilterOutMeter = metrics.NewRegisteredMeter("eth/fetcher/filter/bodies/out", nil) 25 )