metrics

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BroadcastTxTimer measures the transaction broadcast duration
	BroadcastTxTimer metric.Int64Histogram

	// InboundPeers measures the active number of inbound peers
	InboundPeers metric.Int64Histogram

	// OutboundPeers measures the active number of outbound peers
	OutboundPeers metric.Int64Histogram

	// DialingPeers measures the active number of peers in the dialing state
	DialingPeers metric.Int64Histogram

	// NumMempoolTxs measures the number of transaction inside the mempool
	NumMempoolTxs metric.Int64Histogram

	// NumCachedTxs measures the number of transaction inside the mempool cache
	NumCachedTxs metric.Int64Histogram

	// VMQueryCalls measures the frequency of VM query calls
	VMQueryCalls metric.Int64Counter

	// VMQueryErrors measures the frequency of VM query errors
	VMQueryErrors metric.Int64Counter

	// VMGasUsed measures the VM gas usage
	VMGasUsed metric.Int64Histogram

	// VMCPUCycles measures the VM CPU cycles
	VMCPUCycles metric.Int64Histogram

	// VMExecMsgFrequency measures the frequency of VM operations
	VMExecMsgFrequency metric.Int64Counter

	// BuildBlockTimer measures the block build duration
	BuildBlockTimer metric.Int64Histogram

	// ValidatorsCount measures the size of the active validator set
	ValidatorsCount metric.Int64Histogram

	// ValidatorsVotingPower measures the total voting power of the active validator set
	ValidatorsVotingPower metric.Int64Histogram

	// BlockInterval measures the interval between 2 subsequent blocks
	BlockInterval metric.Int64Histogram

	// BlockTxs measures the number of transactions within the latest block
	BlockTxs metric.Int64Histogram

	// BlockSizeBytes measures the size of the latest block in bytes
	BlockSizeBytes metric.Int64Histogram

	// HTTPRequestTime measures the HTTP request response time
	HTTPRequestTime metric.Int64Histogram

	// WSRequestTime measures the WS request response time
	WSRequestTime metric.Int64Histogram
)

Functions

func Init

func Init(config config.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL