metrics

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace = "pyth"

	SubsystemExporter = "exporter"
	SubsystemSolana   = "solana"
	SubsystemOracle   = "oracle"
)
View Source
const (
	TxStatusSuccess = "success"
	TxStatusFailed  = "failed"
)

On-chain transaction execution status.

Variables

View Source
var (
	RpcRequestsTotal = factory.NewCounter(prometheus.CounterOpts{
		Namespace: Namespace,
		Subsystem: SubsystemExporter,
		Name:      "rpc_requests_total",
		Help:      "Number of outgoing RPC requests from pyth_exporter to RPC nodes",
	})

	PublisherBalances = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemSolana,
		Name:      "publish_account_balance",
		Help:      "SOL balance of Pyth publish account in lamports",
	}, []string{labelPublisher})

	AggPrice = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "aggregated_price",
		Help:      "Last aggregated price of Pyth product",
	}, []string{labelProduct, labelSymbol})
	AggConf = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "aggregated_conf_amount",
		Help:      "Last aggregated conf of Pyth product",
	}, []string{labelProduct, labelSymbol})
	AggStatus = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "aggregated_status",
		Help:      "Aggregated trading status of Pyth product",
	}, []string{labelProduct, labelSymbol})
	PublisherPrice = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "publisher_price",
		Help:      "Last published product price by Pyth publisher",
	}, []string{labelProduct, labelSymbol, labelPublisher})
	PublisherConf = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "publisher_conf_amount",
		Help:      "Last published product confidence by Pyth publisher",
	}, []string{labelProduct, labelSymbol, labelPublisher})
	PublisherSlot = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "publisher_slot",
		Help:      "Last observed slot for Pyth publisher",
	}, []string{labelProduct, labelSymbol, labelPublisher})
	PublisherStatus = factory.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: SubsystemOracle,
		Name:      "publisher_status",
		Help:      "Trading status for Pyth publisher",
	}, []string{labelProduct, labelSymbol, labelPublisher})

	TxCount = factory.NewCounterVec(prometheus.CounterOpts{
		Namespace: Namespace,
		Name:      "txs_total",
		Help:      "Approximate number of Pyth transactions sent",
	}, []string{labelPublisher, labelTxStatus})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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