public class MicroprofileMetricsConfig extends Object implements MicrometerConfig.CapabilityEnabled
| Modifier and Type | Field and Description |
|---|---|
Optional<Boolean> |
enabled
Microprofile Metrics support.
|
| Constructor and Description |
|---|
MicroprofileMetricsConfig() |
@ConfigItem public Optional<Boolean> enabled
Support for Microprofile metrics will be enabled if micrometer support is enabled, and this value is true. You need to also include the microprofile api jar to your dependencies:
<dependency> <groupId>org.eclipse.microprofile.metrics</groupId> <artifactId>microprofile-metrics-api</artifactId> </dependency>
public Optional<Boolean> getEnabled()
getEnabled in interface MicrometerConfig.CapabilityEnabledCopyright © 2020 JBoss by Red Hat. All rights reserved.