From 59601e835d787b4f276ffb51f7b517678d218d68 Mon Sep 17 00:00:00 2001 From: CharlesCheung Date: Thu, 2 Nov 2023 11:30:31 +0800 Subject: [PATCH] register metrics --- cdc/sink/metrics/cloudstorage/metrics.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdc/sink/metrics/cloudstorage/metrics.go b/cdc/sink/metrics/cloudstorage/metrics.go index 65b58860c81..e96b14ef9ce 100644 --- a/cdc/sink/metrics/cloudstorage/metrics.go +++ b/cdc/sink/metrics/cloudstorage/metrics.go @@ -69,4 +69,7 @@ var ( func InitMetrics(registry *prometheus.Registry) { registry.MustRegister(CloudStorageWriteBytesGauge) registry.MustRegister(CloudStorageFileCountGauge) + registry.MustRegister(CloudStorageWriteDurationHistogram) + registry.MustRegister(CloudStorageFlushDurationHistogram) + registry.MustRegister(CloudStorageWorkerBusyRatioCounter) }