metrics

package
v0.0.0-...-f409b5d Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CallsCounter = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "rpc_forward_calls_total",
			Help: "Total number of calls to each URL",
		},
		[]string{"chainID", "url"},
	)

	CallDurationHistogram = promauto.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "rpc_forward_call_duration_seconds",
			Help:    "Duration of calls to each URL",
			Buckets: prometheus.DefBuckets,
		},
		[]string{"chainID", "url"},
	)

	CallErrorCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "rpc_call_errors_total",
			Help: "Total number of errors occurred in rpc call",
		},
		[]string{"chainID", "url", "error"},
	)

	LatestBlockHeightGauge = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "rpc_latest_block_height",
			Help: "Latest block height of each URL",
		},
		[]string{"chainID", "url"},
	)
)

Functions

func StartServer

func StartServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

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