hystrix 指标流:'delay' 参数不起作用
hystrix metrics stream: The 'delay' parameter doesn't work
我的应用程序集成了 Hystrix 作为断路器,流端点暴露在 /hystrix.stream
。现在我想通过'delay'参数控制流媒体频率:
curl "http://localhost:9000/hystrix.stream?delay=1000"
很遗憾,'delay' 不起作用。我仍然每秒接收两次 hystrix 指标数据。
求助,谢谢!
看了源码,发现根本没有办法动态改变延迟! Hystrix 在应用程序的启动设置此参数 phrase.The 更改此延迟的唯一方法是在类路径中创建名为 config.properties
的配置文件,然后添加以下内容 属性:
hystrix.stream.dashboard.intervalInMilliseconds=2000
我的应用程序集成了 Hystrix 作为断路器,流端点暴露在 /hystrix.stream
。现在我想通过'delay'参数控制流媒体频率:
curl "http://localhost:9000/hystrix.stream?delay=1000"
很遗憾,'delay' 不起作用。我仍然每秒接收两次 hystrix 指标数据。
求助,谢谢!
看了源码,发现根本没有办法动态改变延迟! Hystrix 在应用程序的启动设置此参数 phrase.The 更改此延迟的唯一方法是在类路径中创建名为 config.properties
的配置文件,然后添加以下内容 属性:
hystrix.stream.dashboard.intervalInMilliseconds=2000