metrics

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StorageCommitCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: metricPrefix + "_storage_commit_counter",
		Help: "The total number of commit operations to storage",
	})
	RpcCallsCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: metricPrefix + "_rpc_calls_counter",
		Help: "The total number of RPC calls to taraxa-node",
	})
	IndexedBlocksCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: metricPrefix + "_blocks_indexed_counter",
		Help: "Number of indexed blocks by indexer since start",
	})
	IndexedTransactionsLastProcessedBlock = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_indexed_transactions_last_block",
		Help: "Number of indexed transactions in last processed block",
	})
	IndexedDagBlocksLastProcessedBlock = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_indexed_dags_last_block",
		Help: "Number of indexed DAG blocks in last processed block",
	})
	IndexedTransactions = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_indexed_transactions",
		Help: "Number of indexed transactions since start",
	})
	IndexedDagBlocks = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_indexed_dags",
		Help: "Number of indexed DAG blocks since start",
	})
	BlockProcessingTimeMilisec = promauto.NewSummary(prometheus.SummaryOpts{
		Name: metricPrefix + "_block_processing_time",
		Help: "Time of processing block in milisec",
	})
	LastProcessedBlockTimestamp = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_time_last_block",
		Help: "Timestamp of last processed block",
	})
	IndexedBlocksTotal = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_blocks_indexed_total",
		Help: "Total number of indexed blocks",
	})
	IndexedTransactionsTotal = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_transactions_indexed_total",
		Help: "Total number of indexed transactions",
	})
	IndexedDagsTotal = promauto.NewGauge(prometheus.GaugeOpts{
		Name: metricPrefix + "_dags_indexed_total",
		Help: "Total number of indexed DAG blocks",
	})
)

Functions

func RunPrometheusServer

func RunPrometheusServer(listenAddr string)

func Save added in v0.2.1

func Save(start_processing time.Time, dags_count, trx_count uint64, finalized *storage.FinalizationData)

Types

This section is empty.

Jump to

Keyboard shortcuts

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