@Override
  public <T> void gauge(String name, Supplier<Supplier<T>> supplier) {
    final String fullName = getMetricName(name);
    gaugeCache.computeIfAbsent(
        fullName,
        fn -> {
          final GaugeProxy<T> gauge = new GaugeProxy<>(supplier);
          metricService.createAutoGauge(fn, getMetricLevel(fn), gauge, GaugeProxy::getDoubleValue);
          return true;
        });
  }
Time taken to process write requests from client.
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/metrics/IoTDBMetricRegistry.java