Hystrix监控问题
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
最新文章
- rem计算适配
- 如何在Ubuntu 14.04服务器上自动化部署Spring Boot的应用
- 当程序报无法复制dll的时候
- 问题解决_(转载)VS2015无法启动 IIS Express Web解决办法
- Maven学习总结(二)——Maven项目构建过程练习
- 解决Centos6.5虚拟机上网问题
- 加密工具类 - CryptoUtils.java
- [Flume] - flume安装
- 【转载】DHCP流程
- Layout 不可思议(二)—— 两侧定宽的三列布局
- springboot统一异常处理类及注解参数为数组的写法
- java通过年月得到该月每一天的日期
- eclipse下载教程
- 项目总结12:bootstrap-select下拉框模糊搜索
- MVC 在action拦截器中获取当前进入的控制器和aciton名
- 【PHP采集】php采集、[\s\S]的使用、正则获取 换行字符串或html块
- Ubuntu -- 安装、卸载程序的命令
- go的基结构体如何使用派生结构体的方法
- Mybatis 通过扫描 自动生成别名
- jquery.validate校验+jquery.form提交,配合使用
热门文章
- 败家玩意儿!Redis 竟然浪费了这么多内存!
- 第一次个人编程作业:我的分数我做主 - 软件工程与 UML
- 排序-InsertionSort 插入排序
- Linux之centos包管理【rpm】、【yum】、【tar】
- 记一次bug思考过程:HibernateException: Could not obtain transaction-synchronized Session for current thread
- mysql-installer-web-community和mysql-installer-communityl两个版本的区别
- 第14.17节 爬虫实战3: request+BeautifulSoup实现自动获取本机上网公网地址
- 从输入 URL 到页面展示,这中间发生了什么?
- Unity发布WebGL改变鼠标样式
- git 远端版本回退