metrics

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockProcess = Metricset.NewCounter("substreams_block_process_start_counter", "Counter for total block processes started, used for rate")
View Source
var Metricset = dmetrics.NewSet()
View Source
var SquashCount = Metricset.NewCounter("substreams_total_squashes_launched", "Counter for Total squashes launched, used for rate")
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")

Functions

This section is empty.

Types

type Stats

type Stats interface {
	StartBackProcessing()
	EndBackProcessing()
	RecordBlock(ref bstream.BlockRef)
	RecordFlush(elapsed time.Duration)
	RecordStoreSquasherProgress(module string, blockNum uint64)
	RecordOutputCacheHit()
	RecordOutputCacheMiss()
	Start(each time.Duration)
	Shutdown()
}

func NewNoopStats

func NewNoopStats() Stats

func NewReqStats

func NewReqStats(logger *zap.Logger) Stats

Jump to

Keyboard shortcuts

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