Skip to content

Commit 33af9a7

Browse files
committed
fix gc safe point monitoring
1 parent b3c5be2 commit 33af9a7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pkg/common/metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
13+
1314
package common
1415

1516
import "github.com/prometheus/client_golang/prometheus"

pkg/metrics/init.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/pingcap/ticdc/pkg/common"
1818
"github.com/pingcap/ticdc/pkg/sink/codec"
1919
"github.com/pingcap/ticdc/pkg/sink/kafka"
20+
"github.com/pingcap/ticdc/pkg/txnutil/gc"
2021
"github.com/prometheus/client_golang/prometheus"
2122
)
2223

@@ -38,4 +39,5 @@ func InitMetrics(registry *prometheus.Registry) {
3839
InitDynamicStreamMetrics(registry)
3940
kafka.InitMetrics(registry)
4041
codec.InitMetrics(registry)
42+
gc.InitMetrics(registry)
4143
}

0 commit comments

Comments
 (0)