metrics

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilAppStatusHandler = fmt.Errorf("nil app status handler when initializing metrics")

ErrNilAppStatusHandler signals that a nil app status handler instance has been provided

Functions

func InitBaseMetrics

func InitBaseMetrics(appStatusHandler core.AppStatusHandler) error

InitBaseMetrics will initialize base, default metrics to 0 values

func InitConfigMetrics

func InitConfigMetrics(
	appStatusHandler core.AppStatusHandler,
	epochConfig config.EpochConfig,
	economicsConfig config.EconomicsConfig,
	genesisNodesConfig sharding.GenesisNodesSetupHandler,
	gatewayMetricsConfig config.GatewayMetricsConfig,
) error

InitConfigMetrics will init the "enable epochs" configuration metrics from epoch config

func InitMetrics

func InitMetrics(
	appStatusHandler core.AppStatusHandler,
	pubkeyStr string,
	nodeType core.NodeType,
	shardCoordinator sharding.Coordinator,
	nodesConfig sharding.GenesisNodesSetupHandler,
	version string,
	economicsConfig *config.EconomicsConfig,
	roundsPerEpoch int64,
	minTransactionVersion uint32,
) error

InitMetrics will init metrics for status handler

func InitRatingsMetrics

func InitRatingsMetrics(appStatusHandler core.AppStatusHandler, ratingsConfig config.RatingsConfig) error

InitRatingsMetrics will init the ratings configuration metrics

func SaveStringMetric

func SaveStringMetric(ash core.AppStatusHandler, key, value string)

SaveStringMetric will save a string metric in status handler

func SaveUint64Metric

func SaveUint64Metric(ash core.AppStatusHandler, key string, value uint64)

SaveUint64Metric will save an uint64 metric in status handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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