Annotation Interface ConditionalOnEnabledMetricsExport
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@Conditional(org.springframework.boot.actuate.autoconfigure.metrics.export.OnMetricsExportEnabledCondition.class)
public @interface ConditionalOnEnabledMetricsExport
@Conditional that checks whether a metrics exporter is enabled. If
the management.<name>.metrics.export.enabled property is configured then its
value is used to determine if it matches. Otherwise, matches if the value of the
management.defaults.metrics.export.enabled property is true or if it is
not configured.- Since:
- 2.4.0
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe name of the metrics exporter.- Returns:
- the name of the metrics exporter
-