From a1d1cbc2e5335456a6680371457a34a3ae50339d Mon Sep 17 00:00:00 2001 From: colin <102356659+colinlyguo@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:32:36 +0800 Subject: [PATCH] fix(rollup-relayer): wrong registration of metric (#1521) Co-authored-by: colinlyguo --- common/version/version.go | 2 +- rollup/internal/controller/watcher/l2_watcher_metrics.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/version/version.go b/common/version/version.go index 5e1688063..a3a2028ff 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.4.62" +var tag = "v4.4.63" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok { diff --git a/rollup/internal/controller/watcher/l2_watcher_metrics.go b/rollup/internal/controller/watcher/l2_watcher_metrics.go index 30b33d27b..bf7e37a95 100644 --- a/rollup/internal/controller/watcher/l2_watcher_metrics.go +++ b/rollup/internal/controller/watcher/l2_watcher_metrics.go @@ -45,7 +45,7 @@ func initL2WatcherMetrics(reg prometheus.Registerer) *l2WatcherMetrics { Name: "rollup_l2_watcher_fetch_nil_row_consumption_block_total", Help: "The total number of occurrences where a fetched block has nil RowConsumption", }), - rollupL2WatcherSyncThroughput: prometheus.NewCounter(prometheus.CounterOpts{ + rollupL2WatcherSyncThroughput: promauto.With(reg).NewCounter(prometheus.CounterOpts{ Name: "rollup_l2_watcher_sync_throughput", Help: "The cumulative gas used in blocks that L2 watcher sync", }),