metrics

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KernelHandleTxnCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "yu",
		Subsystem: "kernel",
		Name:      "handle_txn_count",
		Help:      "Counter of Kernel Handle Txn",
	}, []string{})

	TxPoolInsertCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "yu",
		Subsystem: "txpool",
		Name:      "insert_count",
		Help:      "Counter of txpool insert",
	}, []string{})

	TxpoolSizeGauge = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Namespace: "yu",
			Subsystem: "txpool",
			Name:      "size_gauge",
			Help:      "Gauge of number of txpool",
		},
	)

	StartBlockDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "yu",
			Subsystem: "block",
			Name:      "start_block",
			Help:      "Start Block duration",
		},
		[]string{TripodLabel},
	)

	EndBlockDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "yu",
			Subsystem: "block",
			Name:      "end_block",
			Help:      "End Block duration",
		},
		[]string{TripodLabel},
	)

	FinalizeBlockDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "yu",
			Subsystem: "block",
			Name:      "finalize_block",
			Help:      "Finalize Block duration",
		},
		[]string{TripodLabel},
	)

	AppendBlockDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "yu",
			Subsystem: "block",
			Name:      "append_block",
			Help:      "append block duration",
		},
		[]string{},
	)

	StateCommitDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "yu",
			Subsystem: "state",
			Name:      "state_commit",
			Help:      "State Commit duration",
		},
		[]string{},
	)
)
View Source
var (
	TripodLabel = "tripod"
)

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