@ConfigRoot(name="micrometer", phase=BUILD_AND_RUN_TIME_FIXED) public final class MicrometerConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MicrometerConfig.BinderConfig
Build / static runtime config for binders
|
static interface |
MicrometerConfig.CapabilityEnabled |
static class |
MicrometerConfig.ExportConfig
Build / static runtime config for exporters
|
| Modifier and Type | Field and Description |
|---|---|
MicrometerConfig.BinderConfig |
binder
Build / static runtime config for binders
|
boolean |
binderEnabledDefault
Micrometer MeterBinder discovery.
|
boolean |
enabled
Micrometer metrics support.
|
MicrometerConfig.ExportConfig |
export
Build / static runtime config for exporters
|
boolean |
registryEnabledDefault
Micrometer MeterRegistry discovery.
|
| Constructor and Description |
|---|
MicrometerConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBinderEnabledWithDefault(MicrometerConfig.CapabilityEnabled config)
For MeterBinder configurations with optional 'enabled' attributes,
determine whether or not the binder is enabled using
binderEnabledDefault
as the default value. |
boolean |
checkRegistryEnabledWithDefault(MicrometerConfig.CapabilityEnabled config)
For MeterRegistry configurations with optional 'enabled' attributes,
determine whether or not the registry is enabled using
registryEnabledDefault
as the default value. |
String |
toString() |
@ConfigItem(defaultValue="true") public boolean enabled
Micrometer metrics support is enabled by default.
@ConfigItem(defaultValue="true") public boolean registryEnabledDefault
Micrometer MeterRegistry implementations discovered on the classpath will be enabled automatically by default.
@ConfigItem(defaultValue="true") public boolean binderEnabledDefault
Micrometer MeterBinder implementations discovered on the classpath will be enabled automatically by default.
public MicrometerConfig.BinderConfig binder
public MicrometerConfig.ExportConfig export
public boolean checkRegistryEnabledWithDefault(MicrometerConfig.CapabilityEnabled config)
registryEnabledDefault
as the default value.public boolean checkBinderEnabledWithDefault(MicrometerConfig.CapabilityEnabled config)
binderEnabledDefault
as the default value.Copyright © 2021 JBoss by Red Hat. All rights reserved.