metrics

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMetrics

func InitializeMetrics(exporterConf ExporterConfig) error

func NewPrometheusExporter

func NewPrometheusExporter(addr string) (*prometheus.Exporter, error)

func ShutdownMetrics

func ShutdownMetrics(ctx context.Context) error

Types

type ExporterConfig

type ExporterConfig interface {
	// contains filtered or unexported methods
}

type ExporterNull

type ExporterNull struct{}

type ExporterProm

type ExporterProm struct {
	Addr string
}

type Int64SyncGauge

type Int64SyncGauge struct {
	// contains filtered or unexported fields
}
var (
	ProcessedBlockHeightGauge      *Int64SyncGauge
	BacklogSizeGauge               *Int64SyncGauge
	BacklogOldestTimestampGauge    *Int64SyncGauge
	ReceivePacketsFinalizedCounter api.Int64Counter
)

func NewInt64SyncGauge

func NewInt64SyncGauge(meter api.Meter, name string, options ...api.Int64ObservableGaugeOption) (*Int64SyncGauge, error)

func (*Int64SyncGauge) Set

func (g *Int64SyncGauge) Set(value int64, attr ...attribute.KeyValue)

type Int64WithAttributes

type Int64WithAttributes struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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