From 4427910a3ef57e799fb210a7355fefaa80553bf7 Mon Sep 17 00:00:00 2001 From: dongmen <414110582@qq.com> Date: Wed, 20 Nov 2024 14:40:39 +0800 Subject: [PATCH] fix make cdc Signed-off-by: dongmen <414110582@qq.com> --- pkg/metrics/dispatcher.go | 2 +- pkg/metrics/init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/dispatcher.go b/pkg/metrics/dispatcher.go index 63c4c8ea9..431fb7187 100644 --- a/pkg/metrics/dispatcher.go +++ b/pkg/metrics/dispatcher.go @@ -122,7 +122,7 @@ var ( }) ) -func InitDisaptcherMetrics(registry *prometheus.Registry) { +func InitDispatcherMetrics(registry *prometheus.Registry) { registry.MustRegister(EventDispatcherManagerGauge) registry.MustRegister(TableEventDispatcherGauge) registry.MustRegister(CreateDispatcherDuration) diff --git a/pkg/metrics/init.go b/pkg/metrics/init.go index ab75fe01b..b0ab47cb5 100644 --- a/pkg/metrics/init.go +++ b/pkg/metrics/init.go @@ -21,7 +21,7 @@ func InitMetrics(registry *prometheus.Registry) { InitServerMetrics(registry) InitSchedulerMetrics(registry) InitChangefeedMetrics(registry) - InitDisaptcherMetrics(registry) + InitDispatcherMetrics(registry) InitMessagingMetrics(registry) InitSinkMetrics(registry) InitPullerMetrics(registry)