metrics

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeLbl   = "type"
	OpLabel   = "op"
	StatusLbl = "status"
)

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"
)
View Source
var (
	TxnDBCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "yu",
		Subsystem: "txndb",
		Name:      "op_counter",
		Help:      "Counter of txnDB",
	}, []string{TypeLbl, OpLabel, StatusLbl})
)

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