metrics

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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)

Jump to

Keyboard shortcuts

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