metrics

package
v0.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0, BSD-2-Clause 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 {
	CountMessages()
	CurrentStateIndex(stateIndex uint32)
	MempoolMetrics
	ConsensusMetrics
	StateManagerMetrics
}

func EmptyChainMetrics

func EmptyChainMetrics() ChainMetrics

type ConsensusMetrics

type ConsensusMetrics interface {
	RecordVMRunTime(time.Duration)
	CountVMRuns()
}

type MempoolMetrics

type MempoolMetrics interface {
	CountRequestIn(isc.Request)
	CountRequestOut()
	RecordRequestProcessingTime(isc.RequestID, time.Duration)
	CountBlocksPerChain()
}

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 {
	RecordBlockSize(blockIndex uint32, size float64)
	LastSeenStateIndex(stateIndex uint32)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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