@ Override public JmxMetricReporter init ( ConfigurationProperties configurationProperties , MetricRegistry metricRegistry ) { if ( configurationProperties . isJmxEnabled ( ) ) { jmxReporter = JmxReporter . forRegistry ( metricRegistry ) . inDomain ( MetricRegistry . name ( getClass ( ) , configurationProperties . getUniqueName ( ) ) ) . build ( ) ; } if ( configurationProperties . isJmxAutoStart ( ) ) { start ( ) ; } return this ; }
The JMX Reporter is activated only if the jmxEnabled property is set . If the jmxAutoStart property is enabled the JMX Reporter will start automatically .