Hystrix监控问题:

pom.xml:

<dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
  </dependency>
  <dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-actuator</artifactId>
  </dependency>

在q启动类上加上注解:

@SpringBootApplication
@EnableHystrixDashboard

启动后:访问 http://127.0.0.1:8030/hystrix.stream 没问题

监控某个服务时:一致出现loading

解决:1.手动访问监控的API

2.更换浏览器(google)

3.application.properties在配置中加入:management.endpoints.web.exposure.include="*"

二:使用Turbine监控

需要添加依赖:
  <dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-starter-turbine</artifactId>
  </dependency>
  <dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-netflix-turbine</artifactId>
  </dependency>
  <dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-starter-hystrix</artifactId>
  </dependency>
         <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
         </dependency>
  <dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-actuator</artifactId>
  </dependency>

在启动类上加上注解:

@SpringBootApplication
@EnableHystrixDashboard
@EnableTurbine

最新文章

  1. rem计算适配
  2. 如何在Ubuntu 14.04服务器上自动化部署Spring Boot的应用
  3. 当程序报无法复制dll的时候
  4. 问题解决_(转载)VS2015无法启动 IIS Express Web解决办法
  5. Maven学习总结(二)——Maven项目构建过程练习
  6. 解决Centos6.5虚拟机上网问题
  7. 加密工具类 - CryptoUtils.java
  8. [Flume] - flume安装
  9. 【转载】DHCP流程
  10. Layout 不可思议(二)—— 两侧定宽的三列布局
  11. springboot统一异常处理类及注解参数为数组的写法
  12. java通过年月得到该月每一天的日期
  13. eclipse下载教程
  14. 项目总结12:bootstrap-select下拉框模糊搜索
  15. MVC 在action拦截器中获取当前进入的控制器和aciton名
  16. 【PHP采集】php采集、[\s\S]的使用、正则获取 换行字符串或html块
  17. Ubuntu -- 安装、卸载程序的命令
  18. go的基结构体如何使用派生结构体的方法
  19. Mybatis 通过扫描 自动生成别名
  20. jquery.validate校验+jquery.form提交,配合使用

热门文章

  1. 败家玩意儿!Redis 竟然浪费了这么多内存!
  2. 第一次个人编程作业:我的分数我做主 - 软件工程与 UML
  3. 排序-InsertionSort 插入排序
  4. Linux之centos包管理【rpm】、【yum】、【tar】
  5. 记一次bug思考过程:HibernateException: Could not obtain transaction-synchronized Session for current thread
  6. mysql-installer-web-community和mysql-installer-communityl两个版本的区别
  7. 第14.17节 爬虫实战3: request+BeautifulSoup实现自动获取本机上网公网地址
  8. 从输入 URL 到页面展示,这中间发生了什么?
  9. Unity发布WebGL改变鼠标样式
  10. git 远端版本回退