default Counter registerCounter(String metricName, Counter counter) {
        MetricGroup inlongMetricGroup = getMetricGroup();
        for (Map.Entry<String, String> label : getLabels().entrySet()) {
            inlongMetricGroup = inlongMetricGroup.addGroup(label.getKey(), label.getValue());
        }
        return inlongMetricGroup.counter(metricName, counter);
    }
Register a counter metric

@param metricName The metric name
@param counter The counter of metric
@return Counter of registered
inlong-sort/sort-flink/base/src/main/java/org/apache/inlong/sort/base/metric/MetricData.java