Documentation
¶
Overview ¶
Package metrics holds metrics that are shared by more than one Firehose app.
Metrics defined here follow the `dmetrics` convention of a single package-level collector labelled by `app`, registered once at init time. Per-app instances are thin wrappers holding only the label value, which is what makes them safe when multiple apps run within the same process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinalizedBlockNum ¶
type FinalizedBlockNum struct {
// contains filtered or unexported fields
}
FinalizedBlockNum reports the last known finalized (irreversible) block number for a given app. Paired with `head_block_number`, it tells how far behind finality the head of that app is.
func NewFinalizedBlockNumber ¶
func NewFinalizedBlockNumber(app string) *FinalizedBlockNum
func (*FinalizedBlockNum) Collect ¶
func (f *FinalizedBlockNum) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*FinalizedBlockNum) Describe ¶
func (f *FinalizedBlockNum) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*FinalizedBlockNum) SetUint64 ¶
func (f *FinalizedBlockNum) SetUint64(blockNum uint64)