Eureka客户端-Hystrix监控页面(Dashboard)

1.pom.xml

    
        1.8
        Finchley.SR1
    
    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            
        
    

    
        
            org.springframework.boot
            spring-boot-starter
        

        
            org.springframework.boot
            spring-boot-starter-test
            test
        
        
            org.springframework.cloud
            spring-cloud-starter-netflix-hystrix
        
        
            org.springframework.cloud
            spring-cloud-starter-netflix-hystrix-dashboard
        
    

2、application.yml

spring:
  application:
    name: service-hystrix-dashboard
server:
  port: 8605

3、启动类

@EnableHystrixDashboard
@SpringBootApplication
public class EurekaClientHystrixDashboardApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaClientHystrixDashboardApplication.class, args);
    }

}

4、访问页面

Eureka客户端-Hystrix监控页面(Dashboard)_第1张图片

4、进入页面

Eureka客户端-Hystrix监控页面(Dashboard)_第2张图片

以上图来说明其中各元素的具体含义:

  • 实心圆:它有颜色和大小之分,分别代表实例的监控程度和流量大小。如上图所示,它的健康度从绿色、黄色、橙色、红色递减。通过该实心圆的展示,我们就可以在大量的实例中快速的发现故障实例和高压力实例。
  • 曲线:用来记录 2 分钟内流量的相对变化,我们可以通过它来观察到流量的上升和下降趋势。
  • 其他一些数量指标如下图所示

Eureka客户端-Hystrix监控页面(Dashboard)_第3张图片

你可能感兴趣的:(SpringCloud)