Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Height ¶ added in v1.7.8
type Height interface {
Accepted(height uint64)
}
Height reports the last accepted height
func NewHeight ¶ added in v1.7.8
func NewHeight(namespace string, reg prometheus.Registerer) (Height, error)
type Latency ¶ added in v1.5.3
type Latency interface { // Issued marks the item as having been issued. Issued(id ids.ID, pollNumber uint64) // Accepted marks the item as having been accepted. Accepted(id ids.ID, pollNumber uint64) // Rejected marks the item as having been rejected. Rejected(id ids.ID, pollNumber uint64) // MeasureAndGetOldestDuration returns the amount of time the oldest item // has been processing. MeasureAndGetOldestDuration() time.Duration // NumProcessing returns the number of currently processing items. NumProcessing() int }
func NewLatency ¶ added in v1.7.8
func NewLatency(metricName, descriptionName string, log logging.Logger, namespace string, reg prometheus.Registerer) (Latency, error)
Initialize the metrics with the provided names.
type Polls ¶ added in v1.5.3
type Polls interface { Successful() Failed() }
Polls reports commonly used consensus poll metrics.
func NewPolls ¶ added in v1.7.8
func NewPolls(namespace string, reg prometheus.Registerer) (Polls, error)
Click to show internal directories.
Click to hide internal directories.