code: public static PrometheusMeterRegistry newRegistry(CollectorRegistry registry, Clock clock) {
          final PrometheusMeterRegistry meterRegistry = new PrometheusMeterRegistry(
                  PrometheusConfig.DEFAULT, requireNonNull(registry, "registry"), requireNonNull(clock, "clock"));
          meterRegistry.config().namingConvention(MoreNamingConventions.prometheus());
          meterRegistry.config().pauseDetector(new NoPauseDetector());
          return meterRegistry;
      }
docs: Returns a newly-created {@link PrometheusMeterRegistry} instance with the specified
  {@link CollectorRegistry} and {@link Clock}.