@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); }
/** * Exports actuator metrics to JMX. */ @Bean @ExportMetricWriter public MetricWriter metricWriter(MBeanExporter exporter) { return new JmxMetricWriter(exporter); }
@Bean @ExportMetricWriter public JmxMetricWriter jmxMetricWriter( @Qualifier("mbeanExporter") MBeanExporter exporter) { return new JmxMetricWriter(exporter); }