PrometheusStatsConfiguration with current settings.PrometheusStatsConfiguration.Builder.PrometheusStatsCollector and registers it to Prometheus CollectorRegistry.defaultRegistry.PrometheusStatsCollector and registers it to the given Prometheus CollectorRegistry in the PrometheusStatsConfiguration.CollectorRegistry.Collector for Prometheus.PrometheusStatsCollector.PrometheusStatsConfiguration.CollectorRegistry.