Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = metrics.NewRegistry()
View Source
var ( GasOracleStats struct { // metrics for L2 gas price TxSendCounter metrics.Counter TxNotSignificantCounter metrics.Counter L2GasPriceGauge metrics.Gauge TxConfTimer metrics.Timer TxSendTimer metrics.Timer // metrics for L1 base fee, L1 bas price, da fee // TokenRatioGauge token_ratio = eth_price / mnt_price TokenRatioGauge metrics.GaugeFloat64 // L1BaseFeeGauge (l1_base_fee + l1_priority_fee) * token_ratio L1BaseFeeGauge metrics.Gauge // FeeScalarGauge value to scale the fee up by FeeScalarGauge metrics.Gauge // DaFeeGauge da_fee shows da gas price DaFeeGauge metrics.Gauge // OverHeadGauge over_head, amortized cost of batch submission per transaction OverHeadGauge metrics.Gauge // OverHeadGauge over_head, amortized cost of batch submission per transaction OverHeadUpdateGauge metrics.Gauge // L1GasPriceGauge l1_base_fee + l1_priority_fee L1GasPriceGauge metrics.Gauge // metrics for gas oracle version // PublishVersionGauge publish_version PublishVersionGauge metrics.Gauge } )
Functions ¶
func Exp ¶
Exp will register an expvar powered metrics handler with http.DefaultServeMux on "/debug/vars"
func ExpHandler ¶
ExpHandler will return an expvar powered metrics handler.
func InitAndRegisterStats ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.