metrics

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const ReadHeaderTimeout = time.Millisecond * 500

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainMetrics

type ChainMetrics interface {
	CountMessages()
	CurrentStateIndex(stateIndex uint32)
	MempoolMetrics
	ConsensusMetrics
	StateManagerMetrics
}

func DefaultChainMetrics

func DefaultChainMetrics() ChainMetrics

type ConsensusMetrics

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

type MempoolMetrics

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

type Metrics

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

func New

func New(log *logger.Logger) *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) Start

func (m *Metrics) Start(addr string)

func (*Metrics) Stop

func (m *Metrics) Stop() error

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