metric

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricNameGnfdSavedBlock       = "Greenfield_saved_block_height"
	MetricNameGnfdProcessedBlock   = "Greenfield_processed_block_height"
	MetricNameIsGnfdInturnRelayer  = "is_Greenfield_inturn_relayer"
	MetricNameGnfdRelayerStartTime = "Greenfield_relayer_start_time" // inturn relayer start time
	MetricNameGnfdRelayerEndTime   = "Greenfield_relayer_end_time"   // inturn relayer end time

	MetricNameBSCSavedBlock       = "BSC_saved_block_height"
	MetricNameBSCProcessedBlock   = "BSC_processed_block_height"
	MetricNameIsBSCInturnRelayer  = "is_BSC_inturn_relayer"
	MetricNameBSCRelayerStartTime = "BSC_relayer_start_time" // inturn relayer start time
	MetricNameBSCRelayerEndTime   = "BSC_relayer_end_time"   // inturn relayer end time

	MetricNameNextSendSequenceForChannel    = "next_send_seq_for_channel"
	MetricNameNextReceiveSequenceForChannel = "next_receive_seq_for_channel"

	MetricNameBSCBalance = "bsc_balance"

	MetricNameHasTxDelay = "tx_delay"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricService

type MetricService struct {
	MetricsMap map[string]prometheus.Metric
	// contains filtered or unexported fields
}

func NewMetricService

func NewMetricService(config *config.Config) *MetricService

func (*MetricService) SetBSCBalance

func (m *MetricService) SetBSCBalance(balance float64)

func (*MetricService) SetBSCInturnRelayerMetrics

func (m *MetricService) SetBSCInturnRelayerMetrics(isInturn bool, start, end uint64)

func (*MetricService) SetBSCProcessedBlockHeight

func (m *MetricService) SetBSCProcessedBlockHeight(height uint64)

func (*MetricService) SetBSCSavedBlockHeight

func (m *MetricService) SetBSCSavedBlockHeight(height uint64)

func (*MetricService) SetGnfdInturnRelayerMetrics

func (m *MetricService) SetGnfdInturnRelayerMetrics(isInturn bool, start, end uint64)

func (*MetricService) SetGnfdProcessedBlockHeight

func (m *MetricService) SetGnfdProcessedBlockHeight(height uint64)

func (*MetricService) SetGnfdSavedBlockHeight

func (m *MetricService) SetGnfdSavedBlockHeight(height uint64)

func (*MetricService) SetHasTxDelay

func (m *MetricService) SetHasTxDelay(hasDelay bool)

func (*MetricService) SetNextReceiveSequenceForChannel

func (m *MetricService) SetNextReceiveSequenceForChannel(channel uint8, seq uint64)

func (*MetricService) SetNextSendSequenceForChannel

func (m *MetricService) SetNextSendSequenceForChannel(channel uint8, seq uint64)

func (*MetricService) Start

func (m *MetricService) Start()

Jump to

Keyboard shortcuts

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