metrics

package
v1.0.92 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(
	appStatusHandler core.AppStatusHandler,
	pubKey crypto.PublicKey,
	nodeType core.NodeType,
	shardCoordinator sharding.Coordinator,
	nodesConfig *sharding.NodesSetup,
	version string,
	economicsConfig *config.EconomicsConfig,
)

InitMetrics will init metrics for status handler

func SaveCurrentNodeName added in v1.0.89

func SaveCurrentNodeName(ash core.AppStatusHandler, nodeName string)

SaveCurrentNodeName will save metric in status handler with nodeName

func StartMachineStatisticsPolling

func StartMachineStatisticsPolling(ash core.AppStatusHandler, pollingInterval int) error

StartMachineStatisticsPolling will start read information about current running machini

func StartStatusPolling

func StartStatusPolling(
	ash core.AppStatusHandler,
	pollingInterval int,
	networkComponents *factory.Network,
	processComponents *factory.Process,
) error

StartStatusPolling will start save information in status handler about network

Types

This section is empty.

Jump to

Keyboard shortcuts

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