metrics

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace is the metrics namespace //todo: figure out if this can be used better.
	Namespace = "spacemesh"
	// Subsystem is a subsystem shared by all metrics exposed by this package.
	Subsystem = "hare"
)

Variables

View Source
var (
	// MessageTypeCounter is the number of valid messages per type.
	MessageTypeCounter = prometheus.NewCounterFrom(stdprometheus.CounterOpts{
		Namespace: Namespace,
		Subsystem: Subsystem,
		Name:      "message_type_counter",
		Help:      "Number of valid messages sent to processing for each type",
	}, []string{"type_id", "layer", "reporter"})

	// TotalConsensusProcesses is the total number of current consensus processes.
	TotalConsensusProcesses = prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: Subsystem,
		Name:      "total_consensus_processes",
		Help:      "The total number of current consensus processes running",
	}, []string{"layer"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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