Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 1f24a99

Browse files
committed
register / remove metrics of dumpling
1 parent 5f55bf3 commit 1f24a99

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dumpling/metrics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package dumpling
1515

1616
import (
17+
"github.com/pingcap/dumpling/v4/export"
1718
"github.com/prometheus/client_golang/prometheus"
1819

1920
"github.com/pingcap/dm/pkg/metricsproxy"
@@ -33,8 +34,10 @@ var (
3334
// RegisterMetrics registers metrics.
3435
func RegisterMetrics(registry *prometheus.Registry) {
3536
registry.MustRegister(dumplingExitWithErrorCounter)
37+
export.RegisterMetrics(registry)
3638
}
3739

3840
func (m *Dumpling) removeLabelValuesWithTaskInMetrics(task string) {
3941
dumplingExitWithErrorCounter.DeleteAllAboutLabels(prometheus.Labels{"task": task})
42+
export.RemoveLabelValuesWithTaskInMetrics(prometheus.Labels{"task": task})
4043
}

0 commit comments

Comments
 (0)