Java 类org.springframework.boot.actuate.metrics.jmx.JmxMetricWriter 实例源码

项目:cloudbreak    文件:AppConfig.java   
@Bean
@ExportMetricWriter
/*
 * Prometheus is not capable to scrape json metrics so we need to expose the actuator metrics to jmx. Every
 * counter and gauge metrics are exposed too.
 */
public MetricWriter metricWriter(MBeanExporter exporter) {
    return new JmxMetricWriter(exporter);
}
项目:secrets-proxy    文件:MgmtConfig.java   
/**
 * Exports actuator metrics to JMX.
 */
@Bean
@ExportMetricWriter
public MetricWriter metricWriter(MBeanExporter exporter) {
    return new JmxMetricWriter(exporter);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public JmxMetricWriter jmxMetricWriter(
        @Qualifier("mbeanExporter") MBeanExporter exporter) {
    return new JmxMetricWriter(exporter);
}
项目:spring-boot-concourse    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public JmxMetricWriter jmxMetricWriter(
        @Qualifier("mbeanExporter") MBeanExporter exporter) {
    return new JmxMetricWriter(exporter);
}
项目:contestparser    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public JmxMetricWriter jmxMetricWriter(
        @Qualifier("mbeanExporter") MBeanExporter exporter) {
    return new JmxMetricWriter(exporter);
}