metrics

package
v0.2.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DiffTypeLabel is the label name for the type of different opinions with base block.
	DiffTypeLabel = "diff_type"

	// DiffTypeFor is the label value for the different opinions with base block when voting for blocks.
	DiffTypeFor = "diff_for"
	// DiffTypeAgainst is the label value for the different opinions with base block when voting against blocks.
	DiffTypeAgainst = "diff_against"
	// DiffTypeNeutral is the label value for the different opinions with base block when voting neutral on blocks.
	DiffTypeNeutral = "diff_neutral"
)

Variables

View Source
var BaseBlockExceptionLength = metrics.NewHistogramWithBuckets(
	"base_block_exception_length",
	subsystem,
	"Base block exception length",
	[]string{
		DiffTypeLabel,
	},
	prometheus.ExponentialBuckets(1, 2, 8),
)

BaseBlockExceptionLength is the size of different opinions between a block and its base block.

View Source
var LayerBlockSize = metrics.NewHistogramWithBuckets(
	"layer_block_size",
	subsystem,
	"Block size",
	[]string{},
	prometheus.ExponentialBuckets(100, 2, 8),
)

LayerBlockSize checks average block size.

View Source
var NumTxsInBlock = metrics.NewHistogramWithBuckets(
	"num_txs_in_block",
	subsystem,
	"Number of transactions in block",
	[]string{},
	prometheus.ExponentialBuckets(1, 2, 8),
)

NumTxsInBlock checks average transaction count in block.

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