【问题标题】:Not able to get the Metric charts displayed using Hystrix dashboard in Bluemix无法在 Bluemix 中使用 Hystrix 仪表板显示指标图表
【发布时间】:2016-09-29 20:02:33
【问题描述】:

我正在尝试使用 Hystrix 来实现服务代理来实现断路器模式。我确实实现了 Hystrix 命令并打包了 Hystrix servlet 以提供 Hystrix 流。为了监控服务,我使用的是 Hystrix Dashboard 1.5.0。在本地 Tomcat 服务器上一切正常。我可以看到指标图表

但是,当我在 Bluemix 上部署它时,仪表板不显示图表。相反,它显示“无法连接到命令度量流。”。我还使用 Chrome 浏览器检查了流。我可以看到如下消息:

ping: 

data: 
{
    "type":"HystrixCommand",
    "name":"GetAllContactsCommand",
    "group":"GetAllContactsService",
    "currentTime":1464714539673,
    "isCircuitBreakerOpen":false,
    "errorPercentage":0,
    "errorCount":0,
    "requestCount":0,
    "rollingCountBadRequests":0,
    "rollingCountCollapsedRequests":0,
    "rollingCountEmit":0,
    "rollingCountExceptionsThrown":0,
    "rollingCountFailure":0,
    "rollingCountEmit":0,
    "rollingCountFallbackFailure":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_executionIsolationThreadInterruptOnTimeout":true,
"propertyValue_executionIsolationThreadPoolKeyOverride":null,
"propertyValue_executionIsolationSemaphoreMaxConcurrentRequests":10,
"propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests":10,
"propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,
"propertyValue_requestCacheEnabled":true,
"propertyValue_requestLogEnabled":true,
"reportingHosts":1
}

data: 
{
    "type":"HystrixThreadPool",
    "name":"GetAllContactsService",
    "currentTime":1464714539673,
    "currentActiveCount":0,
    "currentCompletedTaskCount":3,
    "currentCorePoolSize":10,
    "currentLargestPoolSize":3,
    "currentMaximumPoolSize":10,
    "currentPoolSize":3,
    "currentQueueSize":0,
    "currentTaskCount":3,
    "rollingCountThreadsExecuted":0,
    "rollingMaxActiveThreads":0,
    "rollingCountCommandRejections":0,
    "propertyValue_queueSizeRejectionThreshold":5,
    "propertyValue_metricsRollingStatisticalWindowInMilliseconds":10000,
    "reportingHosts":1
}

任何想法,为什么仪表板在 Bluemix 上部署时无法连接到流。任何帮助表示赞赏。

问候, 乌马苏坦。

【问题讨论】:

    标签: ibm-cloud hystrix


    【解决方案1】:

    我在尝试在 Bluemix 上运行时遇到了同样的问题。我也使用 Spring Tools Suite 在本地运行良好。这个问题有解决方案吗?

    我的情况: 我使用 Spring Initialzr 创建了一个 Spring Cloud 应用程序(Eureka、Hystrix、REST 控制器)。我已将它部署到 Bluemix (Cloud Foundry)。除了 Hystrix 仪表板外,一切正常。我收到“无法连接到 Command Metric Stream”。在仪表板上。

    我可以卷曲流 url - 这需要很长时间,但数据确实会返回。

    【讨论】:

      猜你喜欢
      • 2016-09-25
      • 2020-10-01
      • 2021-11-23
      • 2013-09-14
      • 2015-04-13
      • 2017-01-30
      • 1970-01-01
      • 2018-05-08
      • 2016-01-18
      相关资源
      最近更新 更多