public void addSuccCnt(String key, int cnt, int packcnt, long packsize) {
            StatsItem statsItem = counterMap.get(key);
            if (statsItem == null) {
                StatsItem tmpItem = new StatsItem();
                statsItem = counterMap.putIfAbsent(key, tmpItem);
                if (statsItem == null) {
                    statsItem = tmpItem;
                }
            }
            statsItem.addSuccessCnt(cnt, packcnt, packsize);
        }
Add failure statistic

@param key  the statistic key
@param failCnt  the failure count
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/metrics/stats/MonitorIndex.java