metrics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RoutineCreateCodeCounter = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "routine_create_summary",
		Help: "The summary for create new routine.",
	},
		[]string{"code"},
	)
	HandleReceivedMessageCodeCounter = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "handle_received_message_codes",
			Help: "The counter that record received message code",
		},
		[]string{"code"},
	)
	TimeSyncrStatus = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "time_syncer_status",
		Help: "The status in time syncer.",
	})
	BlockSyncrStatus = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "block_syncer_status",
		Help: "The status in time syncer.",
	})
)
View Source
var (
	RespondTimeSyncRoutineGauge = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "routines_respond_time_sync",
		Help: "Record routine counts in time sync.",
	})
	RespondGetSyncStatusGauge = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "routines_respond_get_sync_status",
		Help: "Record routine counts in get sync status.",
	})
)

Functions

func BlockHeightSet

func BlockHeightSet(height int64)

func BlockSyncerStatusSet

func BlockSyncerStatusSet(code int8)

func ConnectedNodeDec

func ConnectedNodeDec()

func ConnectedNodeInc

func ConnectedNodeInc()

func GossipBroadcastBlocksCountInc

func GossipBroadcastBlocksCountInc()

func GossipReceiveBlocksCountInc

func GossipReceiveBlocksCountInc()

func GossipReceiveCountInc

func GossipReceiveCountInc()

func GossipUDPRecvCountInc

func GossipUDPRecvCountInc()

func GossipUDPSendCountInc

func GossipUDPSendCountInc()

func PackageBlockMetricsSet

func PackageBlockMetricsSet(usage float64)

func RecordHandleReceivedCode

func RecordHandleReceivedCode(code int)

func RecvQueueCountInc

func RecvQueueCountInc()

func RegularMetricsRoutine

func RegularMetricsRoutine()

func RoutineCreateCounterObserve

func RoutineCreateCounterObserve(value int)

func SecondBufferDec

func SecondBufferDec()

func SecondBufferInc

func SecondBufferInc()

func SendQueueCountInc

func SendQueueCountInc()

func SubmitTxCountsMetricsInc

func SubmitTxCountsMetricsInc()

func TimeSyncDeltaSet

func TimeSyncDeltaSet(value float64)

func TimeSyncerStatusSet

func TimeSyncerStatusSet(code int8)

func TransactionInsertAdd

func TransactionInsertAdd(value float64)

func TransactionInsertInc

func TransactionInsertInc()

func TxPoolMetricsDec

func TxPoolMetricsDec()

func TxPoolMetricsInc

func TxPoolMetricsInc()

func VerifyTransactionMetricsSet

func VerifyTransactionMetricsSet(usage float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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