metrics

package
v0.5.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockWALMetric

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

func (*BlockWALMetric) IncFailedReads

func (m *BlockWALMetric) IncFailedReads()

func (*BlockWALMetric) IncFailedWrites

func (m *BlockWALMetric) IncFailedWrites()

func (*BlockWALMetric) IncSegments

func (m *BlockWALMetric) IncSegments()

type BlockWALMetrics

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

func NewBlockWALMetrics

func NewBlockWALMetrics() *BlockWALMetrics

func (*BlockWALMetrics) PrometheusCollectors

func (m *BlockWALMetrics) PrometheusCollectors() []prometheus.Collector

type ChainMetric

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

func (*ChainMetric) IncBlocksPerChain

func (c *ChainMetric) IncBlocksPerChain()

func (*ChainMetric) IncMessagesReceived

func (c *ChainMetric) IncMessagesReceived()

func (*ChainMetric) IncRequestsAckMessages

func (c *ChainMetric) IncRequestsAckMessages()

func (*ChainMetric) IncRequestsProcessed

func (c *ChainMetric) IncRequestsProcessed()

func (*ChainMetric) IncRequestsReceived

func (c *ChainMetric) IncRequestsReceived(req isc.Request)

func (*ChainMetric) IncVMRunsCounter

func (c *ChainMetric) IncVMRunsCounter()

func (*ChainMetric) SetBlockSize

func (c *ChainMetric) SetBlockSize(blockSize float64)

func (*ChainMetric) SetCurrentStateIndex

func (c *ChainMetric) SetCurrentStateIndex(stateIndex uint32)

func (*ChainMetric) SetLastSeenStateIndex

func (c *ChainMetric) SetLastSeenStateIndex(stateIndex uint32)

func (*ChainMetric) SetRequestProcessingTime

func (c *ChainMetric) SetRequestProcessingTime(duration time.Duration)

func (*ChainMetric) SetVMRunTime

func (c *ChainMetric) SetVMRunTime(duration time.Duration)

type ChainMetrics

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

ChainMetrics holds all metrics for all chains per chain

func NewChainMetrics

func NewChainMetrics(nodeConnectionMetrics nodeconnmetrics.NodeConnectionMetrics) *ChainMetrics

func (*ChainMetrics) GetNodeConnectionMetrics

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

func (*ChainMetrics) PrometheusCollectors

func (m *ChainMetrics) PrometheusCollectors() []prometheus.Collector

type IBlockWALMetric

type IBlockWALMetric interface {
	IncFailedWrites()
	IncFailedReads()
	IncSegments()
}

func NewBlockWALMetric

func NewBlockWALMetric(blockWALMetrics *BlockWALMetrics, chainID isc.ChainID) IBlockWALMetric

func NewEmptyBlockWALMetric

func NewEmptyBlockWALMetric() IBlockWALMetric

type IChainMetric

type IChainMetric interface {
	IStateManagerMetrics
	IConsensusMetrics
	IMempoolMetrics
	IncRequestsAckMessages()
	IncMessagesReceived()
	SetCurrentStateIndex(stateIndex uint32)
}

func NewChainMetric

func NewChainMetric(chainMetrics *ChainMetrics, chainID isc.ChainID) IChainMetric

func NewEmptyChainMetric

func NewEmptyChainMetric() IChainMetric

type IConsensusMetrics

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

type IMempoolMetrics

type IMempoolMetrics interface {
	IncRequestsReceived(isc.Request)
	IncRequestsProcessed()
	SetRequestProcessingTime(time.Duration)
	IncBlocksPerChain()
}

type IStateManagerMetrics

type IStateManagerMetrics interface {
	SetBlockSize(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