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
Author:
Chris Bono
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the metrics exporter.
  • Element Details

    • value

      String value
      The name of the metrics exporter.
      Returns:
      the name of the metrics exporter