|
|
|
@ -17,13 +17,10 @@
|
|
|
|
|
|
|
|
|
|
package cn.hippo4j.springboot.starter.monitor.micrometer;
|
|
|
|
|
|
|
|
|
|
import cn.hippo4j.core.enable.MarkerConfiguration;
|
|
|
|
|
import cn.hippo4j.monitor.micrometer.AdapterThreadPoolMicrometerMonitorHandler;
|
|
|
|
|
import cn.hippo4j.monitor.micrometer.DynamicThreadPoolMicrometerMonitorHandler;
|
|
|
|
|
import cn.hippo4j.monitor.micrometer.WebThreadPoolMicrometerMonitorHandler;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
@ -31,8 +28,6 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
|
* Micrometer monitor auto configuration.
|
|
|
|
|
*/
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnBean(MarkerConfiguration.Marker.class)
|
|
|
|
|
@ConditionalOnProperty(prefix = "spring.dynamic.thread-pool", value = "enable", matchIfMissing = true, havingValue = "true")
|
|
|
|
|
@ConditionalOnExpression("'${spring.dynamic.thread-pool.monitor.collect-types:}'.contains('micrometer')")
|
|
|
|
|
public class MicrometerMonitorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|