metamonitoring

package
v0.12.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockDiffHealthyThreshold = 900
	TimeDiffHealthyThreshold  = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckService added in v0.10.0

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

func NewHealthCheckService added in v0.10.0

func NewHealthCheckService(cfg config.HealthCheckConfig, readService readService, logger *logging.Logger) (*HealthCheckService, error)

func (*HealthCheckService) Run added in v0.10.0

func (hc *HealthCheckService) Run(ctx context.Context, port int) error

type MetamonitoringService added in v0.12.0

type MetamonitoringService interface {
	BlockSignersStatusPublisher() MonitoringStatusPublisher
	SegmentsStatusPublisher() MonitoringStatusPublisher
	CometTxsStatusPublisher() MonitoringStatusPublisher
	NetworkBalancesStatusPublisher() MonitoringStatusPublisher
	AssetPricesStatusPublisher() MonitoringStatusPublisher
	PrometheusEthereumCalls() MonitoringStatusPublisher
	Run(ctx context.Context, tickInterval time.Duration)
}

func NewMonitoringStatusUpdateService

func NewMonitoringStatusUpdateService(store MonitoringStore, vegaClient VegaClient, logger *logging.Logger) (MetamonitoringService, error)

func NewNopService added in v0.12.0

func NewNopService() MetamonitoringService

type MonitoringStatusPublisher

type MonitoringStatusPublisher interface {
	Publish(isHealthy bool) error
	PublishWithReason(isHealthy bool, reason entities.UnhealthyReason) error
}

type MonitoringStatusUpdateService

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

func (*MonitoringStatusUpdateService) AssetPricesStatusPublisher

func (msus *MonitoringStatusUpdateService) AssetPricesStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) BlockSignersStatusPublisher

func (msus *MonitoringStatusUpdateService) BlockSignersStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) CometTxsStatusPublisher

func (msus *MonitoringStatusUpdateService) CometTxsStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) NetworkBalancesStatusPublisher

func (msus *MonitoringStatusUpdateService) NetworkBalancesStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) PrometheusEthereumCalls added in v0.11.0

func (msus *MonitoringStatusUpdateService) PrometheusEthereumCalls() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) Run

func (msus *MonitoringStatusUpdateService) Run(ctx context.Context, tickInterval time.Duration)

func (*MonitoringStatusUpdateService) SegmentsStatusPublisher

func (msus *MonitoringStatusUpdateService) SegmentsStatusPublisher() MonitoringStatusPublisher

type MonitoringStore

type MonitoringStore interface {
	NewMonitoringStatus() *sqlstore.MonitoringStatus
	NewBlocks() *sqlstore.Blocks
}

type VegaClient

type VegaClient interface {
	GetStatistics() (*vegaclient.Statistics, error)
}

Jump to

Keyboard shortcuts

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