All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.yinfujing.dubbo.spring.boot.actuate.DubboActuateConfiguration Maven / Gradle / Ivy

The newest version!
package com.github.yinfujing.dubbo.spring.boot.actuate;

import org.mvnsearch.spring.boot.dubbo.actuate.DubboMetrics;
import org.springframework.boot.actuate.endpoint.Endpoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 当 actuate这个jar包被配置之后才会触发
 * dubbo 的 监控 配置
 * Created by 赵睿 on 2017/6/5.
 */
@Configuration
@ConditionalOnClass(Endpoint.class)
public class DubboActuateConfiguration  {
    @Bean
    public DubboHealthIndicator dubboHealthIndicator() {
        return new DubboHealthIndicator();
    }

    @Bean
    public ZookeeperHealthIndicator zookeeperHealthIndicator(){
        return new ZookeeperHealthIndicator();
    }

    @Bean
    public DubboMetrics dubboConsumerMetrics() {
        return new DubboMetrics();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy