metrics

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency added in v0.2.3

type Latency struct {
	// Clock gives access to the current wall clock time
	Clock mockable.Clock
	// contains filtered or unexported fields
}

Latency reports commonly used consensus latency metrics.

func (*Latency) Accepted added in v0.2.3

func (m *Latency) Accepted(id ids.ID, pollNumber uint64)

Accepted marks the item as having been accepted.

func (*Latency) Initialize added in v0.2.3

func (m *Latency) Initialize(metricName, descriptionName string, log logging.Logger, namespace string, reg prometheus.Registerer) error

Initialize the metrics with the provided names.

func (*Latency) Issued added in v0.2.3

func (m *Latency) Issued(id ids.ID, pollNumber uint64)

Issued marks the item as having been issued.

func (*Latency) MeasureAndGetOldestDuration added in v0.2.3

func (m *Latency) MeasureAndGetOldestDuration() time.Duration

func (*Latency) ProcessingLen added in v0.2.3

func (m *Latency) ProcessingLen() int

func (*Latency) Rejected added in v0.2.3

func (m *Latency) Rejected(id ids.ID, pollNumber uint64)

Rejected marks the item as having been rejected.

type Polls added in v0.2.3

type Polls struct {
	// contains filtered or unexported fields
}

Polls reports commonly used consensus poll metrics.

func (*Polls) Failed added in v0.2.3

func (m *Polls) Failed()

func (*Polls) Initialize added in v0.2.3

func (m *Polls) Initialize(namespace string, reg prometheus.Registerer) error

Initialize the metrics.

func (*Polls) Successful added in v0.2.3

func (m *Polls) Successful()

Jump to

Keyboard shortcuts

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