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 the MicroProfile Metrics dependency is present:
<dependency> <groupId>org.eclipse.microprofile.metrics</groupId> <artifactId>microprofile-metrics-api</artifactId> </dependency>
The micrometer extension currently provides a compatibility layer that supports the MP Metrics API, but metric names and recorded values will be different. Note that the MP Metrics compatibility layer will move to a different extension in the future.
public Optional<Boolean> getEnabled()
getEnabled in interface MicrometerConfig.CapabilityEnabledCopyright © 2020 JBoss by Red Hat. All rights reserved.