metrics

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 2 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
	Transactions             *prometheus.CounterVec
	UpgradePlan              *prometheus.GaugeVec
	SignedBlocksWindow       *prometheus.GaugeVec
	MinSignedBlocksPerWindow *prometheus.GaugeVec
	DowntimeJailDuration     *prometheus.GaugeVec
	SlashFractionDoubleSign  *prometheus.GaugeVec
	SlashFractionDowntime    *prometheus.GaugeVec

	// Validator metrics
	Rank                    *prometheus.GaugeVec
	ProposedBlocks          *prometheus.CounterVec
	ValidatedBlocks         *prometheus.CounterVec
	MissedBlocks            *prometheus.CounterVec
	SoloMissedBlocks        *prometheus.CounterVec
	ConsecutiveMissedBlocks *prometheus.GaugeVec
	MissedBlocksWindow      *prometheus.GaugeVec
	EmptyBlocks             *prometheus.CounterVec
	Tokens                  *prometheus.GaugeVec
	IsBonded                *prometheus.GaugeVec
	IsJailed                *prometheus.GaugeVec
	Commission              *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