metrics

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToFloat64

func BoolToFloat64(b bool) float64

Types

type Metrics

type Metrics struct {
	Registry *prometheus.Registry

	// Global metrics
	ActiveSet       *prometheus.GaugeVec
	BlockHeight     *prometheus.GaugeVec
	ProposalEndTime *prometheus.GaugeVec
	SeatPrice       *prometheus.GaugeVec
	SkippedBlocks   *prometheus.CounterVec
	TrackedBlocks   *prometheus.CounterVec
	UpgradePlan     *prometheus.GaugeVec

	// Validator metrics
	Rank             *prometheus.GaugeVec
	ValidatedBlocks  *prometheus.CounterVec
	MissedBlocks     *prometheus.CounterVec
	SoloMissedBlocks *prometheus.CounterVec
	Tokens           *prometheus.GaugeVec
	IsBonded         *prometheus.GaugeVec
	IsJailed         *prometheus.GaugeVec
	Vote             *prometheus.GaugeVec

	// Node metrics
	NodeBlockHeight *prometheus.GaugeVec
	NodeSynced      *prometheus.GaugeVec
}

func New

func New(namespace string) *Metrics

func (*Metrics) Register added in v0.4.0

func (m *Metrics) Register()

Jump to

Keyboard shortcuts

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