Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // Clock gives access to the current wall clock time Clock timer.Clock // ProcessingEntries keeps track of the time that each item was issued into // the consensus instance. This is used to calculate the amount of time to // accept or reject the item. ProcessingEntries linkedhashmap.LinkedHashmap // contains filtered or unexported fields }
Metrics reports commonly used consensus metrics.
func (*Metrics) Initialize ¶
func (m *Metrics) Initialize(metricName, descriptionName string, log logging.Logger, namespace string, registerer prometheus.Registerer) error
Initialize the metrics with the provided names.
Click to show internal directories.
Click to hide internal directories.