metrics

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppReadiness = MetricSet.NewAppReadiness("firehose")
View Source
var BlockBeginProcess = MetricSet.NewCounter("substreams_block_process_start_counter", "Counter for total block processes started, used for rate")
View Source
var BlockEndProcess = MetricSet.NewCounter("substreams_block_process_end_counter", "Counter for total block processes ended, used for rate")
View Source
var MetricSet = dmetrics.NewSet()
View Source
var SquashersEnded = MetricSet.NewCounter("substreams_total_squash_processes_closed", "Counter for Total squash processes closed, used for active processes")
View Source
var SquashersStarted = MetricSet.NewCounter("substreams_total_squash_processes_launched", "Counter for Total squash processes launched, used for rate")
View Source
var SquashesLaunched = MetricSet.NewCounter("substreams_total_squashes_launched", "Counter for Total squashes launched, used for rate")

Functions

func RegisterMetricSet added in v1.1.6

func RegisterMetricSet(zlog *zap.Logger)

Types

type Config added in v1.1.8

type Config struct {
	UserID           string
	ApiKeyID         string
	OutputModule     string
	OutputModuleHash string
	ProductionMode   bool
	Tier2            bool
}

type Stats

type Stats interface {
	RecordParallelDuration(elapsed time.Duration)
	RecordWasmExtDuration(wasmExtName string, elapsed time.Duration)
	RecordModuleExecDuration(elapsed time.Duration)
	RecordBlock(ref bstream.BlockRef)
	LogAndClose()
}

func NewNoopStats

func NewNoopStats() Stats

func NewReqStats

func NewReqStats(config *Config, logger *zap.Logger) Stats

Jump to

Keyboard shortcuts

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