github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/neatptc/downloader/metrics.go (about) 1 package downloader 2 3 import ( 4 "github.com/neatlab/neatio/utilities/metrics" 5 ) 6 7 var ( 8 headerInMeter = metrics.NewRegisteredMeter("eth/downloader/headers/in", nil) 9 headerReqTimer = metrics.NewRegisteredTimer("eth/downloader/headers/req", nil) 10 headerDropMeter = metrics.NewRegisteredMeter("eth/downloader/headers/drop", nil) 11 headerTimeoutMeter = metrics.NewRegisteredMeter("eth/downloader/headers/timeout", nil) 12 13 bodyInMeter = metrics.NewRegisteredMeter("eth/downloader/bodies/in", nil) 14 bodyReqTimer = metrics.NewRegisteredTimer("eth/downloader/bodies/req", nil) 15 bodyDropMeter = metrics.NewRegisteredMeter("eth/downloader/bodies/drop", nil) 16 bodyTimeoutMeter = metrics.NewRegisteredMeter("eth/downloader/bodies/timeout", nil) 17 18 receiptInMeter = metrics.NewRegisteredMeter("eth/downloader/receipts/in", nil) 19 receiptReqTimer = metrics.NewRegisteredTimer("eth/downloader/receipts/req", nil) 20 receiptDropMeter = metrics.NewRegisteredMeter("eth/downloader/receipts/drop", nil) 21 receiptTimeoutMeter = metrics.NewRegisteredMeter("eth/downloader/receipts/timeout", nil) 22 23 stateInMeter = metrics.NewRegisteredMeter("eth/downloader/states/in", nil) 24 stateDropMeter = metrics.NewRegisteredMeter("eth/downloader/states/drop", nil) 25 )