metrics

package
v0.5.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainMetrics

type ChainMetrics interface {
	IncRequestsAckMessages()
	IncMessagesReceived()
	SetCurrentStateIndex(stateIndex uint32)
	MempoolMetrics
	ConsensusMetrics
	StateManagerMetrics
}

func EmptyChainMetrics

func EmptyChainMetrics() ChainMetrics

type ConsensusMetrics

type ConsensusMetrics interface {
	SetVMRunTime(time.Duration)
	IncVMRunsCounter()
}

type MempoolMetrics

type MempoolMetrics interface {
	IncRequestsReceived(isc.Request)
	IncRequestsProcessed()
	SetRequestProcessingTime(isc.RequestID, time.Duration)
	IncBlocksPerChain()
}

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func New

func New(nodeConnectionMetrics nodeconnmetrics.NodeConnectionMetrics) *Metrics

func (*Metrics) GetNodeConnectionMetrics added in v0.2.3

func (m *Metrics) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics

func (*Metrics) NewChainMetrics

func (m *Metrics) NewChainMetrics(chainID isc.ChainID) ChainMetrics

func (*Metrics) Register

func (m *Metrics) Register(registry *prometheus.Registry)

type StateManagerMetrics added in v0.2.3

type StateManagerMetrics interface {
	SetBlockSize(blockIndex uint32, size float64)
	SetLastSeenStateIndex(stateIndex uint32)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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