- All Known Implementing Classes:
- MicrometerMetricsFactoryProvider
public interface MetricsFactoryProvider
Creates new instances of 
MetricsFactory.- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes all metrics factories created by this provider.create(Config rootConfig, MetricsConfig metricsConfig, Collection<MetersProvider> metersProviders) Creates a newMetricsFactoryfrom which the caller can obtainMeterRegistryandMeter.Builderinstances.
- 
Method Details- 
createMetricsFactory create(Config rootConfig, MetricsConfig metricsConfig, Collection<MetersProvider> metersProviders) Creates a newMetricsFactoryfrom which the caller can obtainMeterRegistryandMeter.Builderinstances.The metricsConfigparameter will have been derived from therootConfig. In many cases the new factory will only need to know the metrics configuration so that object is provided as a convenience. The root config node allows the factory to use information from elsewhere in the config tree if needed.- Parameters:
- rootConfig- root- Confignode
- metricsConfig-- MetricsConfigsettings
- metersProviders- group of- MetersProviderwhich can furnish- Meter.Builderinstances
- Returns:
- new metrics factory
 
- 
closevoid close()Closes all metrics factories created by this provider.Applications do not normally need to invoke this method. 
 
-