metrics

package
Version: v0.0.0-...-cd31d1c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricsWriteBlockMeter = metrics.GetOrRegisterMeter("core.blockchain.writeBlock.time", nil)

Functions

func StartMetrics

func StartMetrics(
	d time.Duration,
	address string,
	database string,
	username string,
	password string,
	nodeName string,
	networkID string,
	version string,
	coinBase common.Address,
	log *log.ScdoLog)

StartMetrics start recording metrics

func StartMetricsWithConfig

func StartMetricsWithConfig(conf *Config, log *log.ScdoLog, name, version string, networkID string, coinBase common.Address)

StartMetricsWithConfig start recording metrics with configure

Types

type Config

type Config struct {
	Addr     string        `json:"address"`
	Database string        `json:"database"`
	Username string        `json:"username"`
	Password string        `json:"password"`
	Duration time.Duration `json:"duration"`
}

Config infos for influxdb

type DiskStats

type DiskStats struct {
	ReadCount  int64
	ReadBytes  int64
	WriteCount int64
	WriteBytes int64
}

func GetDiskInfo

func GetDiskInfo() *DiskStats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL