Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) Accepted(id ids.ID)
- func (m *Metrics) Initialize(metricName, descriptionName string, log logging.Logger, namespace string, ...) error
- func (m *Metrics) Issued(id ids.ID)
- func (m *Metrics) MeasureAndGetOldestDuration() time.Duration
- func (m *Metrics) ProcessingLen() int
- func (m *Metrics) Rejected(id ids.ID)
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 // 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, reg prometheus.Registerer) error
Initialize the metrics with the provided names.
func (*Metrics) MeasureAndGetOldestDuration ¶
func (*Metrics) ProcessingLen ¶
Click to show internal directories.
Click to hide internal directories.