问题标签 [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.

0 投票
1 回答
1137 浏览

spring-boot - 如何让 Hystrix Dashboard 在 Spring Boot Admin 2.x 中再次工作

Spring Boot Admin 1 有一个集成的Hystrix Dashboard。在将我的堆栈从 Spring Boot 1.x 升级到 2.x 之后;这个仪表板似乎已经消失了。我怎样才能重新启用它?

0 投票
1 回答
46 浏览

java - hystrix 流的请求级别监控

hystrix 是否支持请求级别监控。

例如,我将某些类型的请求发送到单个外部 API。

请求 A:城市请求 | 请求 B:国家请求 | 请求 C:全局请求

我想在我的仪表板上分别监控这些类型的请求,我不想创建单独的服务/方法并使用不同的命令键分别注释它们。

0 投票
5 回答
4475 浏览

spring - 无法连接到 Command Metric Stream。在 Hystrix 仪表板问题中

在发布这个问题之前,我浏览了许多链接,例如:Unable to connect to Command Metric Stream for Hystrix Dashboard with Spring CloudUnable to connect to Command Metric Stream in Spring Cloud + Hystrix + Turbine - MIME type ("text/plain")那不是“文本/事件流”等等,但仍然对我不起作用。

我正在使用 Spring Boot V2.2.2.RELEASE。

在此处输入图像描述

hystrix 仪表板::

HystrixDashboardApplication.java

引导程序属性

pom.xml

天气应用程序::

天气服务.java

WeatherAppApplication.java

应用程序属性

气象服务::

应用程序属性

WeatherServiceApplication.java

在此处输入图像描述

源代码在这里:https ://github.com/javaHelper/spring-cloud-cordinating-services/tree/master/Protecting-Systems-with-Circuit-Breakers

0 投票
2 回答
319 浏览

spring - org.springframework.cloud.netflix.turbine.stream.TurbineStreamAutoConfiguration 中的字段属性需要一个 bean 类型

我浏览了以下链接:Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream,但仍然对我不起作用。这个问题是Unable to connect to Command Metric Stream 的延续。在 Hystrix Dashboard 问题中。

我的源代码:https ://github.com/javaHelper/spring-cloud-cordinating-services/tree/master/Protecting-Systems-with-Circuit-Breakers

只是试图启动

涡轮::

TurbineApplication.java

应用程序属性

在此处输入图像描述

0 投票
1 回答
296 浏览

spring - Spring Boot v2.2.6.RELEASE 和 Turbine - 无法聚合 metrix

我正在研究Spring Boot v2.2.6.RELEASE + Eureka + Hystrix 和 Turbine。在发布这个问题之前,我浏览了许多链接,例如:

但是这两种解决方案都不适合我。

应用程序属性

CoHystrixDashboardApplication.java

在此处输入图像描述

即使我多次点击 url : http://localhost:8082/customerdetails?fastpassid=101,聚合详细信息也不会出现在 Hystrix 中。

pom.xml

在此处输入图像描述

0 投票
1 回答
585 浏览

hystrix - org.springframework.cloud.netflix.hystrix.dashboard.HystrixDashboardConfiguration$ProxyStreamServlet.doGet - Spring Cloud Turbine Streams

我正在研究Spring Boot v2.2.6.RELEASE + Eureka + Cloud Config + Hystrix + Turbine示例。来自https://app.pluralsight.com/course-player?clipId=771ae7a6-e2eb-465a-b7ea-99c8a5531a43的启发。

在此示例中,我希望Hystrix使用 Turbine Streams 将来自不同服务的指标聚合到单个仪表板中。

错误:

我在这里上传了完整的代码:https ://github.com/JavaNeed/spring-cloud-hystrix-turbine-aggregate.git 。

在此处输入图像描述

0 投票
1 回答
227 浏览

spring-boot - hystrix 仪表板不加载

我可以看到 hystrix 仪表板:http://localhost:8081/hystrix 我还看到我的电路中断和回退方法也可以正常工作但是我无法在http://localhost:8081/actuator/hystrix看到我的应用程序数据.stream 在此处输入图像描述 当我查看 /actuator/conditions 时,我看到 Hystrix 出现以下错误

代码 pom.xml

应用程序属性

主应用

目录休息控制器

用户评分服务

0 投票
2 回答
256 浏览

hystrix - Node.js 服务中的 Hystrix 仪表板?

Node.js 中是否有任何功能可以从 Node.js 服务流式传输 hystrix 事件以在仪表板上对其进行监控。

0 投票
1 回答
422 浏览

spring-boot - Hystrix 不显示仪表板

这就是我的 pom.xml 的样子

这就是我的主要课程的样子

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker
@EnableHystrixDashboard
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

这就是我的应用程序属性的样子

spring.application.name=greetings-service
service.message-service.id=messages-service
management.endpoints.web.exposure.include=*

这就是我的控制器的样子

@RestController 公共类 GreetingController {

}

当我检查 URL http://localhost:8082/actuator/hystrix.stream流似乎生成如下

数据:{"type":"HystrixCommand","name":"findMyGreetingMessage","group":"GreetingController","currentTime":1591920892870,"isCircuitBreakerOpen":false,"errorPercentage":0,"errorCount":0 ,"requestCount":0,"rollingCountBadRequests":0,"rollingCountCollapsedRequests":0,"rollingCountEmit":0,"rollingCountExceptionsThrown":0,"rollingCountFailure":0,"rollingCountFallbackEmit":0,"rollingCountFallbackFailure":0," rollingCountFallbackMissing":0,"rollingCountFallbackRejection":0,"rollingCountFallbackSuccess":0,"rollingCountResponsesFromCache":0,"rollingCountSemaphoreRejected":0,"rollingCountShortCircuited":0,"rollingCountSuccess":0,"rollingCountThreadPoolRejected":0,"rollingCountTimeout":0,"currentConcurrentExecutionCount":0,"rollingMaxConcurrentExecutionCount":0,"latencyExecute_mean":0,"latencyExecute":{"0":0,"25": 0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5":0,"100":0},"latencyTotal_mean":0 ,"latencyTotal":{"0":0,"25":0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5 ":0,"100":0},"propertyValue_circuitBreakerRequestVolumeThreshold":20,"propertyValue_circuitBreakerSleepWindowInMilliseconds":5000,"propertyValue_circuitBreakerErrorThresholdPercentage":50,"propertyValue_circuitBreakerForceOpen":false,"propertyValue_circuitBreakerForceClosed":false,"propertyValue_circuitBreakerEnabled":true,"propertyValue_executionIsolationStrategy":"THREAD","propertyValue_executionIsolationThreadTimeoutInMilliseconds":1000,"propertyValue_executionTimeoutInMilliseconds":1000,"propertyValue_executionIsolationIsolationThread_InterruptOnTimeout":true propertyValue_executionIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,"propertyValue_requestCacheEnabled":true,"propertyValue_requestLogEnabled":true,"reportHosts":1,"threadPool":"GreetingController"}

数据:{"type":"HystrixThreadPool","name":"GreetingController","currentTime":1591920892870,"currentActiveCount":0,"currentCompletedTaskCount":2,"currentCorePoolSize":10,"currentLargestPoolSize":2," currentMaximumPoolSize":10,"currentPoolSize":2,"currentQueueSize":0,"currentTaskCount":2,"rollingCountThreadsExecuted":0,"rollingMaxActiveThreads":0,"rollingCountCommandRejections":0,"propertyValue_queueSizeRejectionThreshold":5,"propertyValue_metricsRollingStatisticalWindowInMilliseconds" :10000,"reportingHosts":1}

平:

数据:{"type":"HystrixCommand","name":"findMyGreetingMessage","group":"GreetingController","currentTime":1591920893373,"isCircuitBreakerOpen":false,"errorPercentage":0,"errorCount":0 ,"requestCount":0,"rollingCountBadRequests":0,"rollingCountCollapsedRequests":0,"rollingCountEmit":0,"rollingCountExceptionsThrown":0,"rollingCountFailure":0,"rollingCountFallbackEmit":0,"rollingCountFallbackFailure":0," rollingCountFallbackMissing":0,"rollingCountFallbackRejection":0,"rollingCountFallbackSuccess":0,"rollingCountResponsesFromCache":0,"rollingCountSemaphoreRejected":0,"rollingCountShortCircuited":0,"rollingCountSuccess":0,"rollingCountThreadPoolRejected":0,"rollingCountTimeout":0,"currentConcurrentExecutionCount":0,"rollingMaxConcurrentExecutionCount":0,"latencyExecute_mean":0,"latencyExecute":{"0":0,"25": 0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5":0,"100":0},"latencyTotal_mean":0 ,"latencyTotal":{"0":0,"25":0,"50":0,"75":0,"90":0,"95":0,"99":0,"99.5 ":0,"100":0},"propertyValue_circuitBreakerRequestVolumeThreshold":20,"propertyValue_circuitBreakerSleepWindowInMilliseconds":5000,"propertyValue_circuitBreakerErrorThresholdPercentage":50,"propertyValue_circuitBreakerForceOpen":false,"propertyValue_circuitBreakerForceClosed":false,"propertyValue_circuitBreakerEnabled":true,"propertyValue_executionIsolationStrategy":"THREAD","propertyValue_executionIsolationThreadTimeoutInMilliseconds":1000,"propertyValue_executionTimeoutInMilliseconds":1000,"propertyValue_executionIsolationIsolationThread_InterruptOnTimeout":true propertyValue_executionIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests":10,"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,"propertyValue_requestCacheEnabled":true,"propertyValue_requestLogEnabled":true,"reportHosts":1,"threadPool":"GreetingController"}

数据:{"type":"HystrixThreadPool","name":"GreetingController","currentTime":1591920893373,"currentActiveCount":0,"currentCompletedTaskCount":2,"currentCorePoolSize":10,"currentLargestPoolSize":2," currentMaximumPoolSize":10,"currentPoolSize":2,"currentQueueSize":0,"currentTaskCount":2,"rollingCountThreadsExecuted":0,"rollingMaxActiveThreads":0,"rollingCountCommandRejections":0,"propertyValue_queueSizeRejectionThreshold":5,"propertyValue_metricsRollingStatisticalWindowInMilliseconds" :10000,"reportingHosts":1}

平:

但是,即使在多次刷新它并尝试多次点击该 url 之后,仪表板似乎仍停留在这一点上。

在此处输入图像描述

我在这里想念什么?

0 投票
3 回答
641 浏览

java - Hystrix 仪表板总是显示加载屏幕

我使用 Netflix-OSS 库开发了微服务应用程序。我在 localhost:9091/hystrix 上运行的 Hystrix 仪表板上遇到问题。我想监控微服务 A 和微服务 B 之间的请求指标。端点“hystrix.stream”已注册。

hystrix 仪表板卡在加载时没有显示任何结果。

我检查了浏览器,发现 jquery 错误 - Uncaught TypeError: e.indexOf is not a function 这似乎是 jquery 版本问题。

我正在使用 Jdk 14 版本和 Spring boot 2.3 进行开发