metrics

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: GPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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