diff --git a/rollup/internal/controller/relayer/l1_relayer.go b/rollup/internal/controller/relayer/l1_relayer.go index 6e1de6ad68..fcc03eef80 100644 --- a/rollup/internal/controller/relayer/l1_relayer.go +++ b/rollup/internal/controller/relayer/l1_relayer.go @@ -84,7 +84,7 @@ func NewLayer1Relayer(ctx context.Context, db *gorm.DB, cfg *config.RelayerConfi // ProcessGasPriceOracle imports gas price to layer2 func (r *Layer1Relayer) ProcessGasPriceOracle() { - r.metrics.rollupL1RelayerGasPriceOracleRunTotal.Inc() + r.metrics.rollupL1RelayerGasPriceOraclerRunTotal.Inc() latestBlockHeight, err := r.l1BlockOrm.GetLatestL1BlockHeight(r.ctx) if err != nil { log.Warn("Failed to fetch latest L1 block height from db", "err", err) diff --git a/rollup/internal/controller/relayer/l1_relayer_metrics.go b/rollup/internal/controller/relayer/l1_relayer_metrics.go index 7eeb1b244b..a459ba384e 100644 --- a/rollup/internal/controller/relayer/l1_relayer_metrics.go +++ b/rollup/internal/controller/relayer/l1_relayer_metrics.go @@ -8,7 +8,7 @@ import ( ) type l1RelayerMetrics struct { - rollupL1RelayerGasPriceOracleRunTotal prometheus.Counter + rollupL1RelayerGasPriceOraclerRunTotal prometheus.Counter rollupL1RelayerLastGasPrice prometheus.Gauge rollupL1UpdateGasOracleConfirmedTotal prometheus.Counter rollupL1UpdateGasOracleConfirmedFailedTotal prometheus.Counter @@ -22,9 +22,9 @@ var ( func initL1RelayerMetrics(reg prometheus.Registerer) *l1RelayerMetrics { initL1RelayerMetricOnce.Do(func() { l1RelayerMetric = &l1RelayerMetrics{ - rollupL1RelayerGasPriceOracleRunTotal: promauto.With(reg).NewCounter(prometheus.CounterOpts{ - Name: "rollup_layer1_gas_price_oracle_run_total", - Help: "Total number of times the layer1 gas price oracle has been run", + rollupL1RelayerGasPriceOraclerRunTotal: promauto.With(reg).NewCounter(prometheus.CounterOpts{ + Name: "rollup_layer1_gas_price_oracler_total", + Help: "The total number of layer1 gas price oracler run total", }), rollupL1RelayerLastGasPrice: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ Name: "rollup_layer1_gas_price_latest_gas_price", diff --git a/rollup/internal/controller/relayer/l2_relayer.go b/rollup/internal/controller/relayer/l2_relayer.go index 66a44c4265..ec2c7145ec 100644 --- a/rollup/internal/controller/relayer/l2_relayer.go +++ b/rollup/internal/controller/relayer/l2_relayer.go @@ -255,7 +255,7 @@ func (r *Layer2Relayer) commitGenesisBatch(batchHash string, batchHeader []byte, // ProcessGasPriceOracle imports gas price to layer1 func (r *Layer2Relayer) ProcessGasPriceOracle() { - r.metrics.rollupL2RelayerGasPriceOracleRunTotal.Inc() + r.metrics.rollupL2RelayerGasPriceOraclerRunTotal.Inc() batch, err := r.batchOrm.GetLatestBatch(r.ctx) if batch == nil || err != nil { log.Error("Failed to GetLatestBatch", "batch", batch, "err", err) diff --git a/rollup/internal/controller/relayer/l2_relayer_metrics.go b/rollup/internal/controller/relayer/l2_relayer_metrics.go index af658ed29d..0d03b69ad9 100644 --- a/rollup/internal/controller/relayer/l2_relayer_metrics.go +++ b/rollup/internal/controller/relayer/l2_relayer_metrics.go @@ -10,7 +10,7 @@ import ( type l2RelayerMetrics struct { rollupL2RelayerProcessPendingBatchTotal prometheus.Counter rollupL2RelayerProcessPendingBatchSuccessTotal prometheus.Counter - rollupL2RelayerGasPriceOracleRunTotal prometheus.Counter + rollupL2RelayerGasPriceOraclerRunTotal prometheus.Counter rollupL2RelayerLastGasPrice prometheus.Gauge rollupL2RelayerProcessCommittedBatchesTotal prometheus.Counter rollupL2RelayerProcessCommittedBatchesFinalizedTotal prometheus.Counter @@ -41,9 +41,9 @@ func initL2RelayerMetrics(reg prometheus.Registerer) *l2RelayerMetrics { Name: "rollup_layer2_process_pending_batch_success_total", Help: "The total number of layer2 process pending success batch", }), - rollupL2RelayerGasPriceOracleRunTotal: promauto.With(reg).NewCounter(prometheus.CounterOpts{ - Name: "rollup_layer2_gas_price_oracle_run_total", - Help: "Total number of times the layer2 gas price oracle has been run", + rollupL2RelayerGasPriceOraclerRunTotal: promauto.With(reg).NewCounter(prometheus.CounterOpts{ + Name: "rollup_layer2_gas_price_oracler_total", + Help: "The total number of layer2 gas price oracler run total", }), rollupL2RelayerLastGasPrice: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ Name: "rollup_layer2_gas_price_latest_gas_price",