【问题标题】:hystrix metrics stream: The 'delay' parameter doesn't workhystrix 指标流:“延迟”参数不起作用
【发布时间】:2017-09-23 07:37:04
【问题描述】:

我的应用程序将 Hystrix 集成为断路器,流端点暴露在 /hystrix.stream。现在我想通过“延迟”参数来控制流频率:

curl "http://localhost:9000/hystrix.stream?delay=1000"

很遗憾,“延迟”不起作用。我仍然每秒收到两次 hystrix 指标数据。

帮助,谢谢!

【问题讨论】:

    标签: hystrix spring-cloud-netflix


    【解决方案1】:

    查了源码,发现根本没有办法动态改变延迟! Hystrix 在应用的起始短语处设置此参数。更​​改此延迟的唯一方法是在类路径中创建一个名为 config.properties 的配置文件,然后添加以下属性:

    hystrix.stream.dashboard.intervalInMilliseconds=2000
    

    【讨论】:

      猜你喜欢
      • 2016-04-20
      • 2012-10-09
      • 1970-01-01
      • 2011-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多