Search in sources :

Example 1 with OpenTsdbGaugeWriter

use of org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbGaugeWriter 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;
}
Also used : OpenTsdbGaugeWriter(org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbGaugeWriter) ExportMetricWriter(org.springframework.boot.actuate.autoconfigure.ExportMetricWriter) EnableConfigurationProperties(org.springframework.boot.context.properties.EnableConfigurationProperties) ConfigurationProperties(org.springframework.boot.context.properties.ConfigurationProperties) Bean(org.springframework.context.annotation.Bean)

Aggregations

ExportMetricWriter (org.springframework.boot.actuate.autoconfigure.ExportMetricWriter)1 OpenTsdbGaugeWriter (org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbGaugeWriter)1 ConfigurationProperties (org.springframework.boot.context.properties.ConfigurationProperties)1 EnableConfigurationProperties (org.springframework.boot.context.properties.EnableConfigurationProperties)1 Bean (org.springframework.context.annotation.Bean)1