Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2018 Changes in this version + var DLBodies = metrics.NewRegisteredMeter("download/body", reg) + var DLBodyDrops = metrics.NewRegisteredMeter("download/body/drop", reg) + var DLBodyTimeouts = metrics.NewRegisteredMeter("download/body/timeout", reg) + var DLBodyTimer = metrics.NewRegisteredTimer("download/body", reg) + var DLHeaderDrops = metrics.NewRegisteredMeter("download/header/drop", reg) + var DLHeaderTimeouts = metrics.NewRegisteredMeter("download/header/timeout", reg) + var DLHeaderTimer = metrics.NewRegisteredTimer("download/header", reg) + var DLHeaders = metrics.NewRegisteredMeter("download/header", reg) + var DLReceiptDrops = metrics.NewRegisteredMeter("download/receipt/drop", reg) + var DLReceiptTimeouts = metrics.NewRegisteredMeter("download/receipt/timeout", reg) + var DLReceiptTimer = metrics.NewRegisteredTimer("download/receipt", reg) + var DLReceipts = metrics.NewRegisteredMeter("download/receipt", reg) + var DLStateDrops = metrics.NewRegisteredMeter("download/state/drop", reg) + var DLStateTimeouts = metrics.NewRegisteredMeter("download/state/timeout", reg) + var DLStateTimer = metrics.NewRegisteredTimer("download/state", reg) + var DLStates = metrics.NewRegisteredMeter("download/state", reg) + var FetchAnnounceDOS = metrics.NewRegisteredMeter("fetch/announce/dos", reg) + var FetchAnnounceDrops = metrics.NewRegisteredMeter("fetch/announce/drop", reg) + var FetchAnnounceTimer = metrics.NewRegisteredTimer("fetch/announce", reg) + var FetchAnnounces = metrics.NewRegisteredMeter("fetch/announce", reg) + var FetchBlocks = metrics.NewRegisteredMeter("fetch/block", reg) + var FetchBodies = metrics.NewRegisteredMeter("fetch/body", reg) + var FetchBroadcastDOS = metrics.NewRegisteredMeter("fetch/broadcast/dos", reg) + var FetchBroadcastDrops = metrics.NewRegisteredMeter("fetch/broadcast/drop", reg) + var FetchBroadcastTimer = metrics.NewRegisteredTimer("fetch/broadcast", reg) + var FetchBroadcasts = metrics.NewRegisteredMeter("fetch/broadcast", reg) + var FetchFilterBlockIns = metrics.NewRegisteredMeter("fetch/filter/block/in", reg) + var FetchFilterBlockOuts = metrics.NewRegisteredMeter("fetch/filter/block/out", reg) + var FetchFilterBodyIns = metrics.NewRegisteredMeter("fetch/filter/body/in", reg) + var FetchFilterBodyOuts = metrics.NewRegisteredMeter("fetch/filter/body/out", reg) + var FetchFilterHeaderIns = metrics.NewRegisteredMeter("fetch/filter/header/in", reg) + var FetchFilterHeaderOuts = metrics.NewRegisteredMeter("fetch/filter/header/out", reg) + var FetchHeaders = metrics.NewRegisteredMeter("fetch/header", reg) + var MemAllocs = metrics.GetOrRegisterGauge("memory/allocs", reg) + var MemFrees = metrics.GetOrRegisterGauge("memory/frees", reg) + var MemInuse = metrics.GetOrRegisterGauge("memory/inuse", reg) + var MemPauses = metrics.GetOrRegisterGauge("memory/pauses", reg) + var MsgBlockIn = metrics.NewRegisteredMeter("msg/block/in", reg) + var MsgBlockInBytes = metrics.NewRegisteredMeter("msg/block/in/bytes", reg) + var MsgBlockOut = metrics.NewRegisteredMeter("msg/block/out", reg) + var MsgBlockOutBytes = metrics.NewRegisteredMeter("msg/block/out/bytes", reg) + var MsgBodyIn = metrics.NewRegisteredMeter("msg/body/in", reg) + var MsgBodyInBytes = metrics.NewRegisteredMeter("msg/body/in/bytes", reg) + var MsgBodyOut = metrics.NewRegisteredMeter("msg/body/out", reg) + var MsgBodyOutBytes = metrics.NewRegisteredMeter("msg/body/out/bytes", reg) + var MsgHashIn = metrics.NewRegisteredMeter("msg/hash/in", reg) + var MsgHashInBytes = metrics.NewRegisteredMeter("msg/hash/out/bytes", reg) + var MsgHashOut = metrics.NewRegisteredMeter("msg/hash/in", reg) + var MsgHashOutBytes = metrics.NewRegisteredMeter("msg/hash/out/bytes", reg) + var MsgHeaderIn = metrics.NewRegisteredMeter("msg/header/in", reg) + var MsgHeaderInBytes = metrics.NewRegisteredMeter("msg/header/in/bytes", reg) + var MsgHeaderOut = metrics.NewRegisteredMeter("msg/header/out", reg) + var MsgHeaderOutBytes = metrics.NewRegisteredMeter("msg/header/out/bytes", reg) + var MsgMiscIn = metrics.NewRegisteredMeter("msg/misc/in", reg) + var MsgMiscInBytes = metrics.NewRegisteredMeter("msg/misc/in/bytes", reg) + var MsgMiscOut = metrics.NewRegisteredMeter("msg/misc/out", reg) + var MsgMiscOutBytes = metrics.NewRegisteredMeter("msg/misc/out/bytes", reg) + var MsgReceiptIn = metrics.NewRegisteredMeter("msg/receipt/in", reg) + var MsgReceiptInBytes = metrics.NewRegisteredMeter("msg/receipt/in/bytes", reg) + var MsgReceiptOut = metrics.NewRegisteredMeter("msg/receipt/out", reg) + var MsgReceiptOutBytes = metrics.NewRegisteredMeter("msg/receipt/out/bytes", reg) + var MsgStateIn = metrics.NewRegisteredMeter("msg/state/in", reg) + var MsgStateInBytes = metrics.NewRegisteredMeter("msg/state/in/bytes", reg) + var MsgStateOut = metrics.NewRegisteredMeter("msg/state/out", reg) + var MsgStateOutBytes = metrics.NewRegisteredMeter("msg/state/out/bytes", reg) + var MsgTXNIn = metrics.NewRegisteredMeter("msg/txn/in", reg) + var MsgTXNInBytes = metrics.NewRegisteredMeter("msg/txn/in/bytes", reg) + var MsgTXNOut = metrics.NewRegisteredMeter("msg/txn/out", reg) + var MsgTXNOutBytes = metrics.NewRegisteredMeter("msg/txn/out/bytes", reg) + var NumGoRoutines = metrics.GetOrRegisterGauge("runtime/goroutines", reg) + var P2PIn = metrics.NewRegisteredMeter("p2p/in", reg) + var P2PInBytes = metrics.NewRegisteredMeter("p2p/in/bytes", reg) + var P2POut = metrics.NewRegisteredMeter("p2p/out", reg) + var P2POutBytes = metrics.NewRegisteredMeter("p2p/out/bytes", reg) + func CollectToFile(file string) + func CollectToJSON() ([]byte, error) + func UpdateSysMetrics()