collectors

package
v0.12.1-preview.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceMetric added in v0.11.0

type AccountBalanceMetric struct {
	Value     float64
	ChainId   string
	NetworkId string
}

type ContractCallResponse added in v0.11.0

type ContractCallResponse struct {
	Value           float64
	ContractAddress string
	MethodName      string
}

type VegaMonitoringCollector

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

func NewVegaMonitoringCollector

func NewVegaMonitoringCollector() *VegaMonitoringCollector

func (*VegaMonitoringCollector) Collect

func (c *VegaMonitoringCollector) Collect(ch chan<- prometheus.Metric)

Collect returns the current state of all metrics of the collector.

func (*VegaMonitoringCollector) Describe

func (c *VegaMonitoringCollector) Describe(ch chan<- *prometheus.Desc)

Describe returns all descriptions of the collector.

func (*VegaMonitoringCollector) UpdateBlockExplorerStatus

func (c *VegaMonitoringCollector) UpdateBlockExplorerStatus(node string, newStatus *types.BlockExplorerStatus)

func (*VegaMonitoringCollector) UpdateCoreStatus

func (c *VegaMonitoringCollector) UpdateCoreStatus(node string, newStatus *types.CoreStatus)

func (*VegaMonitoringCollector) UpdateDataNodeStatus

func (c *VegaMonitoringCollector) UpdateDataNodeStatus(node string, newStatus *types.DataNodeStatus)

func (*VegaMonitoringCollector) UpdateEthereumAccountBalance added in v0.11.0

func (c *VegaMonitoringCollector) UpdateEthereumAccountBalance(accountAddress string, chainId, networkId string, val float64)

func (*VegaMonitoringCollector) UpdateEthereumCallResponse added in v0.11.0

func (c *VegaMonitoringCollector) UpdateEthereumCallResponse(
	id string,
	contractAddress string,
	methodName string,
	val float64,
)

func (*VegaMonitoringCollector) UpdateEthereumContractEvents added in v0.12.0

func (c *VegaMonitoringCollector) UpdateEthereumContractEvents(events []types.EthereumContractsEvents)

func (*VegaMonitoringCollector) UpdateEthereumNodeHeights added in v0.12.0

func (c *VegaMonitoringCollector) UpdateEthereumNodeHeights(heights []types.EthereumNodeHeight)

func (*VegaMonitoringCollector) UpdateEthereumNodeStatuses added in v0.7.0

func (c *VegaMonitoringCollector) UpdateEthereumNodeStatuses(nodeHealthy map[string]bool, updateTime time.Time)

func (*VegaMonitoringCollector) UpdateMonitoringDBStatuses added in v0.6.0

func (c *VegaMonitoringCollector) UpdateMonitoringDBStatuses(newStatuses read.MetaMonitoringStatuses)

Jump to

Keyboard shortcuts

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