metrics

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metricset = dmetrics.NewSet()
View Source
var NodeosConnectedPeers = NodeosMetricset.NewGauge("nodeos_connected_peers_total", "Number of connected peers")
View Source
var NodeosCurrentStatus = NodeosMetricset.NewGauge("nodeos_current_status", "Current status for nodeos")
View Source
var NodeosDBSizeInfo = NodeosMetricset.NewGaugeVec("nodeos_db_size_info_bytes", []string{"metric"}, "DB size from Nodeos")
View Source
var NodeosIsBlockProducer = NodeosMetricset.NewGauge("nodeos_is_block_producer_total", "Is block producer (bp_mode and is not paused)")
View Source
var NodeosMetricset = dmetrics.NewSet()
View Source
var NodeosSuccessfulSnapshots = NodeosMetricset.NewCounter("nodeos_successful_snapshots", "This counter increments every time that a state snapshot is completed successfully")
View Source
var SuccessfulBackups = Metricset.NewCounter("successful_backups", "This counter increments every time that a backup is completed successfully")

FIXME this may be covered by another metric's registration in dmetrics. Minor Race condition alert

Functions

func NewHeadBlockNumber

func NewHeadBlockNumber(serviceName string) *dmetrics.HeadBlockNum

func NewHeadBlockTimeDrift

func NewHeadBlockTimeDrift(serviceName string) *dmetrics.HeadTimeDrift

func SetNodeosIsBlockProducer

func SetNodeosIsBlockProducer(isProducer bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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