专家们,
在我的 spring boot 2.5.5 项目中使用 spring cloud version2020.0.4 并配置了具有以下依赖项的 Hystrix 仪表板
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
<version>2.2.9.RELEASE</version>
</dependency>
我已经在 api 网关中配置了类似这样的回退
filters:
- name: CircuitBreaker
args:
name: My-SERVICE
fallbackuri: forward:/myServiceFallBack
API 网关在端口:9191 上运行
到目前为止还不错。当我通过 API 网关访问 API 时,我可以看到 CircuirtBreaker 启动,并且在需要时请求被转发到“后备 URI”。
现在当我访问
http://localhost:9191/actuator/hystrix.stream
我也可以看到那里列出的 ping
我通过 API Gateway 调用最终用户 API 端点。
但是,当我尝试查看 Hystrix 仪表板时,它只是在加载。我在浏览器控制台或网络选项卡中看不到任何问题。
知道这里出了什么问题。