@ConditionalOnClass(value=com.codahale.metrics.MetricRegistry.class) @Configuration public class MetricsExporterConfiguration extends Object
Exporter
interface for metric exports and register it as a Spring Bean.| Constructor and Description |
|---|
MetricsExporterConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.actuate.metrics.export.Exporter |
consoleExporter() |
org.springframework.boot.actuate.metrics.export.Exporter |
graphiteExporter() |
org.springframework.boot.actuate.metrics.export.Exporter |
influxdbExporter() |
@Bean @ConditionalOnClass(value=com.codahale.metrics.ConsoleReporter.class) public org.springframework.boot.actuate.metrics.export.Exporter consoleExporter()
@Bean @ConditionalOnClass(name="com.codahale.metrics.graphite.GraphiteReporter") public org.springframework.boot.actuate.metrics.export.Exporter graphiteExporter()
Copyright © 2015. All Rights Reserved.