public static String generatePath(String name, Map<String, String> tags) {
    StringBuilder stringBuilder = generateMetric(name);
    for (Map.Entry<String, String> entry : tags.entrySet()) {
      stringBuilder
          .append(".")
          .append("`")
          .append(entry.getKey().replace(BACK_QUOTE_STRING, DOUBLE_BACK_QUOTE_STRING))
          .append("=")
          .append(entry.getValue().replace(BACK_QUOTE_STRING, DOUBLE_BACK_QUOTE_STRING))
          .append("`");
    }
    return stringBuilder.toString();
  }
Generate the path of metric with tags map.
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java