metrics

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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