public interface RegistrySettings
Settings which control metrics within registries (application, vendor, base) as a group or individually.
Application code can control the metrics of each registry type as a whole, enabling or disabling all metrics of the type
using RegistrySettings.Builder.enabled(boolean) as well as selectively enabling or disabling specific metrics using
RegistrySettings.Builder.filterSettings(io.helidon.metrics.api.RegistryFilterSettings.Builder).
Callers can also pass a Config object to builder or static factory methods as well.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forRegistrySettings. -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistrySettings.Builderbuilder()Creates a new defaulted builder forRegistrySettings.static RegistrySettingscreate()Creates a new defaultRegistrySettingsinstance.static RegistrySettingsCreates a newRegistrySettingsinstance using the provided config.booleanReturns whether metrics of this type are enabled.booleanisMetricEnabled(String dottedName) Returns whether the specified metric name is enabled or not, factoring in the enabled setting for this type as a whole with the regex pattern.booleanReturns whether strict exemplar behavior is enabled.
-
Method Details
-
create
Creates a new defaultRegistrySettingsinstance.- Returns:
- new default instance
-
create
Creates a newRegistrySettingsinstance using the provided config.- Parameters:
registrySettings- the config node for the registry's settings- Returns:
- updated builder
-
builder
Creates a new defaulted builder forRegistrySettings.- Returns:
- new builder with default values
-
isEnabled
boolean isEnabled()Returns whether metrics of this type are enabled.- Returns:
- true if metrics of this type are enabled as a whole; false otherwise
-
isStrictExemplars
boolean isStrictExemplars()Returns whether strict exemplar behavior is enabled.- Returns:
- true/false
-
isMetricEnabled
Returns whether the specified metric name is enabled or not, factoring in the enabled setting for this type as a whole with the regex pattern.- Parameters:
dottedName- name of the metric to check- Returns:
- true if the specified metric should be full-featured; false otherwise
-