private void removeAutoGauge(final String pipeID) {
    final String[] pipeNameAndCreationTime = pipeID.split("_");
    metricService.remove(
        MetricType.AUTO_GAUGE,
        Metric.PIPE_GLOBAL_REMAINING_EVENT_COUNT.toString(),
        Tag.NAME.toString(),
        pipeNameAndCreationTime[0],
        Tag.CREATION_TIME.toString(),
        pipeNameAndCreationTime[1]);
    metricService.remove(
        MetricType.AUTO_GAUGE,
        Metric.PIPE_GLOBAL_REMAINING_TIME.toString(),
        Tag.NAME.toString(),
        pipeNameAndCreationTime[0],
        Tag.CREATION_TIME.toString(),
        pipeNameAndCreationTime[1]);
    pipeTemporaryMetaMap.remove(pipeID);
  }
The {@link PipeTemporaryMetaInCoordinatorMetrics} is to calculate the pipe-statistics from the
{@link PipeTemporaryMeta}. The class is lock-free and can only read from the thread-safe
variables from the {@link PipeTemporaryMeta}.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/metric/overview/PipeTemporaryMetaInCoordinatorMetrics.java