- 
 public interface MetricsSettingsSettings which control behavior for metrics overall.This class controls all of metrics, not just a single component's usage of metrics. For that, see ComponentMetricsSettings.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceMetricsSettings.BuilderBuilder forMetricsSettings.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseMetricsSettingsbaseMetricsSettings()static MetricsSettings.Builderbuilder()Returns a builder forMetricsSettings.static MetricsSettings.Builderbuilder(MetricsSettings metricsSettings)Creates a builder based on the values in an existingMetricsSettingsinstance.static MetricsSettingscreate()Returns default metrics settings based on default config.static MetricsSettingscreate(Config config)Returns metrics settings based on aConfignode, by convention themetricsconfig section within the overallmetricsconfig.booleanisEnabled()booleanisMetricEnabled(MetricRegistry.Type registryType, String metricName)Reports whether the specified metric is enabled in the indicated registry type.KeyPerformanceIndicatorMetricsSettingskeyPerformanceIndicatorSettings()RegistrySettingsregistrySettings(MetricRegistry.Type registryType)Returns theRegistrySettingsfor the indicated registry type.
 
- 
- 
- 
Method Detail- 
createstatic MetricsSettings create() Returns default metrics settings based on default config.- Returns:
- new settings reflecting the default config
 
 - 
createstatic MetricsSettings create(Config config) Returns metrics settings based on aConfignode, by convention themetricsconfig section within the overallmetricsconfig.Equivalent to MetricsSettings.builder().config(config).build().- Parameters:
- config- the metrics config section
- Returns:
- new settings reflecting the config, using defaults as needed
 
 - 
builderstatic MetricsSettings.Builder builder() Returns a builder forMetricsSettings.- Returns:
- new builder
 
 - 
builderstatic MetricsSettings.Builder builder(MetricsSettings metricsSettings) Creates a builder based on the values in an existingMetricsSettingsinstance.- Parameters:
- metricsSettings- existing instance to copy
- Returns:
- MetricsSettings.Builderinitialized according to the provided settings
 
 - 
isEnabledboolean isEnabled() - Returns:
- whether metrics are enabled according to the settings
 
 - 
keyPerformanceIndicatorSettingsKeyPerformanceIndicatorMetricsSettings keyPerformanceIndicatorSettings() - Returns:
- the KPI metrics settings
 
 - 
baseMetricsSettingsBaseMetricsSettings baseMetricsSettings() - Returns:
- the base metrics settings
 
 - 
isMetricEnabledboolean isMetricEnabled(MetricRegistry.Type registryType, String metricName) Reports whether the specified metric is enabled in the indicated registry type.- Parameters:
- registryType- which registry type to check
- metricName- name of the metric to check
- Returns:
- true if metrics overall is enabled and if the metric is enabled in the specified registry; false otherwise
 
 - 
registrySettingsRegistrySettings registrySettings(MetricRegistry.Type registryType) Returns theRegistrySettingsfor the indicated registry type.- Parameters:
- registryType- registry type of interest
- Returns:
- RegistrySettingsfor the selected type
 
 
- 
 
-