public class SystemPropsMetricsListenerConfig extends Object implements MetricsListenerConfig
MetricsListenerConfig that is based on the system properties. It
accepts the property prefix and then defines the properties:
property.prefix.enabled for the isEnabled() (default true)
property.prefix.ignore_http_tags_provider for the isIgnoreHttpMetricProvider() ()} (default false)
| Constructor and Description |
|---|
SystemPropsMetricsListenerConfig(String propertyPrefix)
Default constructor.
|
public SystemPropsMetricsListenerConfig(String propertyPrefix)
propertyPrefix - Prefix of the system properties to use.public boolean isEnabled()
isEnabled in interface MetricsListenerConfigpublic boolean isIgnoreHttpMetricProvider()
isIgnoreHttpMetricProvider in interface MetricsListenerConfigHttpMetricsTagProvider
should be ignored.Copyright © 2022. All rights reserved.