Back to godoc.org

Package metrics

v0.1.10-docs-prerelease
Latest Go to latest

The highest tagged major version is .

Published: Apr 17, 2020 | License: MIT | Module: github.com/spacemeshos/go-spacemesh

Index

Constants

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

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"})
)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier