use of org.springframework.boot.actuate.autoconfigure.ExportMetricWriter in project spring-boot by spring-projects.
the class SampleOpenTsdbExportApplication method openTsdbMetricWriter.
@Bean
@ConfigurationProperties("metrics.export")
@ExportMetricWriter
public GaugeWriter openTsdbMetricWriter() {
OpenTsdbGaugeWriter writer = new OpenTsdbGaugeWriter();
writer.setNamingStrategy(namingStrategy());
return writer;
}
Aggregations