问题标签 [hystrix-dashboard]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Spring cloud Netflix-Hystrix gradle 依赖项不允许 Spring Boot 应用程序启动
我使用Spring-Boot和Eureka server r 构建了简单的微服务应用程序。现在,我想添加容错,以防在 Eureka 服务器中注册的任何服务出现故障。所以,我使用了 netflix-hystrix gradle dependency。但是这种依赖导致我的应用程序崩溃。
运行应用程序时收到以下错误消息:
Execution failed for task ':compileJava'. Could not resolve all files for configuration ':compileClasspath'. Could not find org.springframework.cloud:spring-cloud-starter-netflix-hystrix:.
作为参考,我添加了build.gradle文件的片段。
java - 如何在 jmx (jconsole bean) 中记录 HystrixCommand 指标
我正在使用HystrixCommand
,我对其他一些微服务(比如说Github api)的每次调用都包含在 HystrixCommand 中。然而,很多时候这些下游系统抛出异常或失败,我的 HystrixCommand 也是如此。如何在 jconsole 中监控这些 HystrixCommand?我知道并监控我的微服务的端点,但我更感兴趣的是监控下游系统(例如 Github api)抛出异常的次数,或者 Github api 的 2XX、4XX 和 5XX 的一般差异值是多少?
简而言之,我想监视 Github 抛出的 2XX、4XX 和 5XX(我不拥有,但我在 HystrixCommand 的 run 方法中调用)?或者换句话说,我的 HystrixCommand 的“运行”方法运行了多少次(成功和失败)?
当我查看Hystrix 命令的文档时,似乎 Hystrix 已经内置了监控指标的功能,但我不明白如何将它集成到我的应用程序中。例如它有getMetrics方法,但我不知道如何使用它。
spring - hystrix仪表板不加载metrix
专家们,
在我的 spring boot 2.5.5 项目中使用 spring cloud version2020.0.4 并配置了具有以下依赖项的 Hystrix 仪表板
我已经在 api 网关中配置了类似这样的回退
API 网关在端口:9191 上运行
到目前为止还不错。当我通过 API 网关访问 API 时,我可以看到 CircuirtBreaker 启动,并且在需要时请求被转发到“后备 URI”。
现在当我访问
http://localhost:9191/actuator/hystrix.stream
我也可以看到那里列出的 ping
我通过 API Gateway 调用最终用户 API 端点。
但是,当我尝试查看 Hystrix 仪表板时,它只是在加载。我在浏览器控制台或网络选项卡中看不到任何问题。
知道这里出了什么问题。
spring - Spring Cloud Hystrix 项目真的被弃用了吗?
我们如何在 Spring Cloud 项目中使用 Hystrix,而 Spring 当前版本不支持此断路器并建议使用 Resilience4j。换句话说,使用 Resilience4j,如何应用附加功能,例如仪表板、涡轮机等。感谢您的回答!
java - Hystrix Dashboard 显示加载中
我正在使用 Hystrix 和 Hystrix Dashboard 查看错误。当 hystrix 流工作文件时,Hystrix 仪表板显示“正在加载...”消息,并且不显示故障或图表。
** GatewayServer 中使用的注解 **
** GatewayServer 的 application.properties 中的 Hystrix 条目 **
** GatewayServer 的 POM.XML 的详细信息 **
** 用于 Hystrix Dashboard 的注解 **
** Hystrix Dashboard 的 application.properties 中的 Hystrix 条目 **
** GatewayServer 的 POM.XML 的详细信息 **