应用场景:
在Spring Cloud微服务架构中,采用Turbine聚合Hystrix监控信息流,然后通过Hystrix Dashboard进行展示。
问题描述:
在Hystrix仪表盘页面进行监控时,页面提示“Unable to connect to Command Metric Stream”
查看Turbine服务的日志发现Turbine在连接被监控的服务时提醒404错误,如下所示:
2022-02-23 08:38:37.846 INFO --- [ Timer-0] c.n.t.monitor.instance.InstanceMonitor : Url for host: http://192.168.2.243:8201/actuator/hystrix.stream EMAIL-SERVICE
2022-02-23 08:38:37.860 ERROR --- [InstanceMonitor] c.n.t.monitor.instance.InstanceMonitor : Could not initiate connection to host, giving up: [<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size