metrics

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Prefix for the metrics of the etherman package.
	Prefix = "etherman_"

	// ReadAndProcessAllEventsTimeName is the name of the label read and process all event.
	ReadAndProcessAllEventsTimeName = Prefix + "read_and_process_all_event_time"

	// ProcessAllEventTimeName is the name of the label to process all event.
	ProcessAllEventTimeName = Prefix + "process_all_event_time"

	// ProcessSingleEventTimeName is the name of the label to process a single event.
	ProcessSingleEventTimeName = Prefix + "process_single_event_time"

	// GetEventsTimeName is the name of the label to get L1 events.
	GetEventsTimeName = Prefix + "get_events_time"

	// GetForksTimeName is the name of the label to get forkIDs intervals.
	GetForksTimeName = Prefix + "get_forkIDs_time"

	// VerifyGenBlockTimeName is the name of the label to verify the genesis block.
	VerifyGenBlockTimeName = Prefix + "verify_genesisBlockNum_time"

	// EventCounterName is the name of the label to count the processed events.
	EventCounterName = Prefix + "processed_events_counter"
)

Variables

This section is empty.

Functions

func EventCounter

func EventCounter()

EventCounter increases the counter for the processed events

func GetEventsTime

func GetEventsTime(lastProcessTime time.Duration)

GetEventsTime observes the time to get the events from L1 on the histogram.

func GetForksTime

func GetForksTime(lastProcessTime time.Duration)

GetForksTime observes the time to get the forkIDs on the histogram.

func ProcessAllEventTime

func ProcessAllEventTime(lastProcessTime time.Duration)

ProcessAllEventTime observes the time to process all event on the histogram.

func ProcessSingleEventTime

func ProcessSingleEventTime(lastProcessTime time.Duration)

ProcessSingleEventTime observes the time to process a single event on the histogram.

func ReadAndProcessAllEventsTime

func ReadAndProcessAllEventsTime(lastProcessTime time.Duration)

ReadAndProcessAllEventsTime observes the time read and process all event on the histogram.

func Register

func Register()

Register the metrics for the etherman package.

func VerifyGenBlockTime

func VerifyGenBlockTime(lastProcessTime time.Duration)

VerifyGenBlockTime observes the time for etherman to verify the genesis blocknumber on the histogram.

Types

This section is empty.

Jump to

Keyboard shortcuts

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