Hystrix仪表盘--Unable to connect to Command Metric Stream
来源:互联网 发布:阿里云代理商技术 编辑:程序博客网 时间:2024/05/16 18:16
Unable to connect to Command Metric Stream 这个是错误是链接不上,错误原因可能是缺少jar包或者没有Enable相关服务。
针对ribbon实现断路由监控
1.则pom中需要加入以下jar包
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix-dashboard</artifactId></dependency>2.boot启动程序启动下面标签对应的服务
@EnableHystrix@EnableHystrixDashboard
3.对应的service上肯定要加上断路由设定的
@HystrixCommand(fallbackMethod = "hiError")
针对fegin的实现断路由监控
因为fegin中本身自带断路器的,所以跟ribbon的处理稍有不同
1.则pom中需要加入以下jar包,本身实现断路处理不需要引入spring-cloud-starter-hystrix这个jar就可以实现,但是要加入监控则还是需要引入下面3个jar包
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix-dashboard</artifactId></dependency>
@EnableHystrixDashboard@EnableCircuitBreaker
3.对应的service上肯定要加上断路由设定的
@FeignClient(value = "service-hi" ,fallback = SchedualServiceHiHystric.class)public interface SchedualServiceHi { @GetMapping("/hi") String sayHiFromClientOne(@RequestParam(value = "name") String name) ;}
阅读全文
0 0
- Hystrix仪表盘--Unable to connect to Command Metric Stream
- spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
- spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
- Unable to connect to Command Metric Stream.解决方案
- Unable to connect device
- Unable to recognize OLE stream
- maven/jekinsFailed to connect to repository : Command
- Unable to connect to specified host. 错误
- unable to connect to converter enterprise server
- :“Unable to connect to Manager Service”
- Unable to connect to printd的解决方法
- uiautomatorviewer出现Unable to connect to adb
- adb connect 失败时(unable to connect to)解决办法
- adb connect unable to connect to处理方法
- adb connect 连接失败问题unable to connect to
- adb connect 失败时(unable to connect to)解决办法
- CheckStyle unable to read from stream
- Hystrix 仪表盘
- JQuery中$.ajax()方法参数详解
- Liunx vsftpd安装手册,附带我的安装详细步骤
- 使用Docker环境快速搭建靶机环境
- 《关于雅思》
- 使用ES6的Promise完美解决回调地狱
- Hystrix仪表盘--Unable to connect to Command Metric Stream
- andriod 相关,懒得总是翻枪
- 原型模式(Prototype)
- UVa --- 10795 A Different Task 汉诺塔不一样的操作【递归 + 思维】
- 重庆2日游
- 切线空间法线
- Phoenix 采用bulkload 导入 hbase (2017-8-16)
- MFC与先锋aria
- jmeter之BeanShell Sampler与jar包导入