public static String generatePath(String name, String... tags) {
    StringBuilder stringBuilder = generateMetric(name);
    for (int i = 0; i < tags.length; i += 2) {
      stringBuilder
          .append(".")
          .append("`")
          .append(tags[i].replace(BACK_QUOTE_STRING, DOUBLE_BACK_QUOTE_STRING))
          .append("=")
          .append(tags[i + 1].replace(BACK_QUOTE_STRING, DOUBLE_BACK_QUOTE_STRING))
          .append("`");
    }
    return stringBuilder.toString();
  }
Generate the path of metric with tags array.
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java