metrics

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToFloat64

func BoolToFloat64(b bool) float64

func StringToFloat64 added in v0.5.0

func StringToFloat64(s string) float64

Types

type Metrics

type Metrics struct {
	BlockNumber             prometheus.Gauge
	ChainID                 *prometheus.GaugeVec
	CurrentProposals        *prometheus.GaugeVec
	EpochLength             prometheus.Gauge
	EpochStartHeight        prometheus.Gauge
	NextValidatorStake      *prometheus.GaugeVec
	PrevEpochKickout        *prometheus.GaugeVec
	ProtocolVersion         prometheus.Gauge
	SeatPrice               prometheus.Gauge
	SyncingDesc             prometheus.Gauge
	ValidatorExpectedBlocks *prometheus.GaugeVec
	ValidatorExpectedChunks *prometheus.GaugeVec
	ValidatorProducedBlocks *prometheus.GaugeVec
	ValidatorProducedChunks *prometheus.GaugeVec
	ValidatorSlashed        *prometheus.GaugeVec
	ValidatorStake          *prometheus.GaugeVec
	ValidatorRank           *prometheus.GaugeVec
	VersionBuild            *prometheus.GaugeVec
}

func New

func New(namespace string) *Metrics

func (*Metrics) Register

func (m *Metrics) Register(reg prometheus.Registerer)

Jump to

Keyboard shortcuts

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