metrics

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastedErrTxTotalMetric

type BroadcastedErrTxTotalMetric struct {
	metrics.Counter
}

func NewBroadcastedErrTxTotalMetric

func NewBroadcastedErrTxTotalMetric(registry *prometheus.Registry) BroadcastedErrTxTotalMetric

func NewNullBroadcastedErrTxTotalMetric

func NewNullBroadcastedErrTxTotalMetric() BroadcastedErrTxTotalMetric

func (*BroadcastedErrTxTotalMetric) Add

func (c *BroadcastedErrTxTotalMetric) Add(delta float64, errMsgValue string)

type BroadcastedTxTotalMetric

type BroadcastedTxTotalMetric struct {
	metrics.Counter
}

func NewBroadcastedTxTotalMetric

func NewBroadcastedTxTotalMetric(registry *prometheus.Registry) BroadcastedTxTotalMetric

func NewNullBroadcastedTxTotalMetric

func NewNullBroadcastedTxTotalMetric() BroadcastedTxTotalMetric

type ChainDbHeightMetric

type ChainDbHeightMetric struct {
	metrics.Gauge
}

func NewChainDbHeightMetric

func NewChainDbHeightMetric(registry *prometheus.Registry) ChainDbHeightMetric

func NewNullChainDbHeightMetric

func NewNullChainDbHeightMetric() ChainDbHeightMetric

type ExecutedTxsTotalMetric

type ExecutedTxsTotalMetric struct {
	metrics.Counter
}

func NewExecutedTxsTotalMetric

func NewExecutedTxsTotalMetric(registry *prometheus.Registry) ExecutedTxsTotalMetric

func NewNullExecutedTxsTotalMetric

func NewNullExecutedTxsTotalMetric() ExecutedTxsTotalMetric

type Metrics

type Metrics struct {
	ChaindbHeight          ChainDbHeightMetric
	BroadcastedTxsTotal    BroadcastedTxTotalMetric
	BroadcastedErrTxsTotal BroadcastedErrTxTotalMetric
	PersistedTxsTotal      PersistedTxsTotalMetric
	ExecutedTxsTotal       ExecutedTxsTotalMetric
	TxsSizeTotal           TxsSizeTotalMetric
	TxsCostTotal           TxsCostTotalMetric
	TxsGasTotal            TxsGasTotalMetric
}

func NewMetrics

func NewMetrics(registry *prometheus.Registry) Metrics

func NewNullMetrics

func NewNullMetrics() Metrics

NopMetrics returns no-op metrics.

type PersistedTxsTotalMetric

type PersistedTxsTotalMetric struct {
	metrics.Counter
}

func NewNullPersistedTxsTotalMetric

func NewNullPersistedTxsTotalMetric() PersistedTxsTotalMetric

func NewPersistedTxsTotalMetric

func NewPersistedTxsTotalMetric(registry *prometheus.Registry) PersistedTxsTotalMetric

type TxsCostTotalMetric

type TxsCostTotalMetric struct {
	metrics.Gauge
}

func NewNullTxsCostTotalMetric

func NewNullTxsCostTotalMetric() TxsCostTotalMetric

func NewTxsCostTotalMetric

func NewTxsCostTotalMetric(registry *prometheus.Registry) TxsCostTotalMetric

type TxsGasTotalMetric

type TxsGasTotalMetric struct {
	metrics.Gauge
}

func NewNullTxsGasTotalMetric

func NewNullTxsGasTotalMetric() TxsGasTotalMetric

func NewTxsGasTotalMetric

func NewTxsGasTotalMetric(registry *prometheus.Registry) TxsGasTotalMetric

type TxsSizeTotalMetric

type TxsSizeTotalMetric struct {
	metrics.Gauge
}

func NewNullTxsSizeTotalMetric

func NewNullTxsSizeTotalMetric() TxsSizeTotalMetric

func NewTxsSizeTotalMetric

func NewTxsSizeTotalMetric(registry *prometheus.Registry) TxsSizeTotalMetric

Jump to

Keyboard shortcuts

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