metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 {
	// Exporter metrics
	BlockHeight     prometheus.Gauge
	Rank            *prometheus.GaugeVec
	ActiveSet       prometheus.Gauge
	SeatPrice       prometheus.Gauge
	ValidatedBlocks *prometheus.CounterVec
	MissedBlocks    *prometheus.CounterVec
	TrackedBlocks   prometheus.Counter
	SkippedBlocks   prometheus.Counter
	Tokens          *prometheus.GaugeVec
	IsBonded        *prometheus.GaugeVec
	IsJailed        *prometheus.GaugeVec

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

func New

func New(namespace string) *Metrics

Jump to

Keyboard shortcuts

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