metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0, BSD-2-Clause Imports: 10 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()
	CountRequestAckMessages()
	MempoolMetrics
	ConsensusMetrics
}

func DefaultChainMetrics

func DefaultChainMetrics() ChainMetrics

type ConsensusMetrics

type ConsensusMetrics interface {
	RecordVMRunTime(time.Duration)
}

type MempoolMetrics

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

type Metrics

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

func New

func New(log *logger.Logger) *Metrics

func (*Metrics) NewChainMetrics

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

func (*Metrics) Start

func (m *Metrics) Start(addr string)

func (*Metrics) Stop

func (m *Metrics) Stop() error

Jump to

Keyboard shortcuts

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