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 CheckErrTxsTotalMetric

type CheckErrTxsTotalMetric struct {
	metrics.Counter
}

func NewCheckErrTxsTotalMetric

func NewCheckErrTxsTotalMetric(registry *prometheus.Registry) CheckErrTxsTotalMetric

func NewNullCheckErrTrxTotalMetric

func NewNullCheckErrTrxTotalMetric() CheckErrTxsTotalMetric

func (*CheckErrTxsTotalMetric) Add

func (c *CheckErrTxsTotalMetric) Add(delta float64, errorCodeValue string)

type CheckTxTotalMetric

type CheckTxTotalMetric struct {
	metrics.Counter
}

func NewCheckTxTotalMetric

func NewCheckTxTotalMetric(registry *prometheus.Registry) CheckTxTotalMetric

func NewNullCheckTxTotalMetric

func NewNullCheckTxTotalMetric() CheckTxTotalMetric

type CommitBlockTotalMetric

type CommitBlockTotalMetric struct {
	metrics.Counter
}

func NewCommitBlockTotalMetric

func NewCommitBlockTotalMetric(registry *prometheus.Registry) CommitBlockTotalMetric

func NewNullCommitBlockTotalMetric

func NewNullCommitBlockTotalMetric() CommitBlockTotalMetric

type CommitErrBlockTotalMetric

type CommitErrBlockTotalMetric struct {
	metrics.Counter
}

func NewCommitErrBlockTotalMetric

func NewCommitErrBlockTotalMetric(registry *prometheus.Registry) CommitErrBlockTotalMetric

func NewNullCommitErrBlockTotalMetric

func NewNullCommitErrBlockTotalMetric() CommitErrBlockTotalMetric

func (*CommitErrBlockTotalMetric) Add

func (c *CommitErrBlockTotalMetric) Add(delta float64, errorCodeValue string)

type DeliverErrTxsTotalMetric

type DeliverErrTxsTotalMetric struct {
	metrics.Counter
}

func NewDeliverErrTxsTotalMetric

func NewDeliverErrTxsTotalMetric(registry *prometheus.Registry) DeliverErrTxsTotalMetric

func NewNullDeliverErrTxsTotalMetric

func NewNullDeliverErrTxsTotalMetric() DeliverErrTxsTotalMetric

func (*DeliverErrTxsTotalMetric) Add

func (c *DeliverErrTxsTotalMetric) Add(delta float64, errorCodeValue string)

type DeliverTxsTotalMetric

type DeliverTxsTotalMetric struct {
	metrics.Counter
}

func NewDeliverTxsTotalMetric

func NewDeliverTxsTotalMetric(registry *prometheus.Registry) DeliverTxsTotalMetric

func NewNullDeliverTxsTotalMetric

func NewNullDeliverTxsTotalMetric() DeliverTxsTotalMetric

type Metrics

type Metrics struct {
	CheckTxsTotal          CheckTxTotalMetric
	CheckErrTxsTotal       CheckErrTxsTotalMetric
	DeliverTxsTotal        DeliverTxsTotalMetric
	DeliverErrTxsTotal     DeliverErrTxsTotalMetric
	CommitBlockTotal       CommitBlockTotalMetric
	CommitErrBlockTotal    CommitErrBlockTotalMetric
	ReplacedBlockTimeTotal ReplacedBlockTimeTotalMetric
}

Metrics contains metrics exposed by this package.

func NewMetrics

func NewMetrics(registry *prometheus.Registry) Metrics

func NewNullMetrics

func NewNullMetrics() Metrics

type ReplacedBlockTimeTotalMetric added in v1.3.0

type ReplacedBlockTimeTotalMetric struct {
	metrics.Counter
}

func NewNullReplacedBlockTimeTotalMetric added in v1.3.0

func NewNullReplacedBlockTimeTotalMetric() ReplacedBlockTimeTotalMetric

func NewReplacedBlockTimeTotalMetric added in v1.3.0

func NewReplacedBlockTimeTotalMetric(registry *prometheus.Registry) ReplacedBlockTimeTotalMetric

Jump to

Keyboard shortcuts

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