简体   繁体   English

没有尤里卡的涡轮仪表板指标

[英]Turbine Dashboard Metrics without Eureka

I am working on two Spring-boot applications. 我正在研究两个Spring-boot应用程序。 I am using spring-cloud-starter-hystrix for circuit-breaking & fallback methods using @EnableCircuitBreaker . 我正在使用spring-cloud-starter-hystrix来使用@EnableCircuitBreaker进行电路中断和后备方法。

Now I also want to have an hystrix dashboard with metrics which can be achieved by Turbine Server using @EnableTurbine @EnableHystrixDashboard . 现在我还想要一个hystrix dashboard with metricshystrix dashboard with metrics ,可以通过使用@EnableTurbine @EnableHystrixDashboard Turbine Server实现。

AFAIK the Turbine service gets the application URLs from Eureka Instance. AFAIK Turbine服务从Eureka Instance获取应用程序URL。 And in Turbine server app.properties we should give the other apps name. 在Turbine服务器app.properties中,我们应该给出其他应用程序名称。 So that Turbine will check with Eureka on app url:port. 所以Turbine会在app url:port上查看Eureka。

In my case, I am not using Eureka. 就我而言,我没有使用尤里卡。 So how can I use a Turbine Service to manually hardcode my application URL to fetch metric streams & display the metrics dashboard? 那么如何使用Turbine Service手动硬编码我的应用程序URL以获取指标流并显示指标仪表板?

So basically in Turbine Server can I disable connection to Eureka & hardcode URLs to fetch metrics? 所以基本上在Turbine Server中我可以禁用与Eureka和硬编码URL的连接以获取指标吗?

I have browsed for few hours & couldnt find a solution. 我浏览了几个小时,无法找到解决方案。 Any help is appreciated. 任何帮助表示赞赏。

  1. Download and run turbine-web war file from HERE and deploy it on any server say a tomcat with a JVM runtime argument specifying the location of your turbine config file. HERE下载并运行turbine-web war文件,并将其部署在任何服务器上,例如带有JVM运行时参数的tomcat,指定您的涡轮配置文件的位置。 Something like- 就像是-

-Darchaius.configurationSource.additionalUrls=file:///etc/files/turbine-archaius.properties" -Darchaius.configurationSource.additionalUrls =文件:///etc/files/turbine-archaius.properties”

  1. Add configuration like your server IPs, URI of hystrix stream servlet in that file. 添加配置,如服务器IP,hystrix流servlet的URI在该文件中。 Take more help from HERE . 这里获得更多帮助。

Here's my sample config file for better understanding- 这是我的示例配置文件,以便更好地理解 -

turbine.aggregator.clusterConfig=<cluster-name> turbine.aggregator.clusterConfig = <群集名称>

turbine.instanceUrlSuffix.<cluster-name>=/hystrix.stream turbine.instanceUrlSuffix <群集名称> = / hystrix.stream

#I am using a separate file to list down all my server IPs that turbine need to agregate data from turbine.FileBasedInstanceDiscovery.filePath=/etc/files/turbine-server-list #I我正在使用一个单独的文件列出我需要的所有服务器IP,以便从turb.FileBasedInstanceDiscovery.filePath = / etc / files / turbine-server-list中收集数据

InstanceDiscovery.impl=com.netflix.turbine.discovery.FileBasedInstanceDiscovery InstanceDiscovery.impl = com.netflix.turbine.discovery.FileBasedInstanceDiscovery

turbine.InstanceMonitor.eventStream.skipLineLogic.enabled=false turbine.InstanceMonitor.eventStream.skipLineLogic.enabled = FALSE

The other file turbine-server-list contains server IPs from which to aggregate metrics. 另一个文件turbine-server-list包含用于聚合度量的服务器IP。 something like- 就像是-

APPLICATION-IP1:PORT,<cluster-name>,up APPLICATION-IP1:PORT,<群集名称>,向上

APPLICATION-IP2:PORT,<cluster-name>,up APPLICATION-IP2:PORT,<群集名称>,向上

  1. Find your aggregated turbine metrics at- http://TURBINE-SERVER-IP:PORT/turbine/turbine.stream?cluster=cluster-name -http:// TURBINE-SERVER-IP:PORT / turbine / turbine.stream?cluster = cluster-name查找汇总的涡轮机指标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM