metrics

package
v0.0.0-...-4097cb8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 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.SeeleLog)

StartMetrics start recording metrics

func StartMetricsWithConfig

func StartMetricsWithConfig(conf *Config, log *log.SeeleLog, 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
y or Y : Canonical URL