diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java index 51df5c356c..f77891894b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java @@ -35,12 +35,8 @@ import org.springframework.util.StringUtils; @ConfigurationProperties("spring.metrics.export") public class MetricExportProperties extends TriggerProperties { - /** - * Flag to disable all metric exports (assuming any MetricWriters are available). - */ - private boolean enabled = true; - - private Map triggers = new LinkedHashMap(); + private Map triggers + = new LinkedHashMap(); private Redis redis = new Redis(); @@ -70,16 +66,6 @@ public class MetricExportProperties extends TriggerProperties { } } - @Override - public boolean isEnabled() { - return this.enabled; - } - - @Override - public void setEnabled(boolean enabled) { - this.enabled = enabled; - } - /** * Configuration for triggers on individual named writers. Each value can individually * specify a name pattern explicitly, or else the map key will be used if the name is