炮兵测试脚本退出,而无需等待炮兵 - 包木datog完成冲洗
我有一个炮兵测试脚本,该脚本使用炮兵 - 帕金 - datadog定期冲洗到datadog。
在shell脚本中:
export DEBUG=metrics,plugin:datadog
在炮兵YML文件中:
plugins:
datadog:
prefix: "artillery.[my-prefix]."
tags:
...
但是,看起来炮兵在完成测试方案后,炮兵似乎不在等待插件来完成指标发送和退出过程。我在日志中看到了插件启动指标的冲洗,但是它们没有达到DD:
metrics Flushing 31 metrics to DataDog +12s
metrics Calling add_metrics with ...
在简短的情况下,我无法在DD中获得任何指标。在更长的情况下,最后几个度量冲洗总是不会出现在DD中。
有什么方法可以告诉炮兵在退出测试过程之前等待插件冲洗?我在文档中没有发现任何内容。
I have an Artillery test script which uses artillery-plugin-datadog for periodically flushing metrics to Datadog.
In shell script:
export DEBUG=metrics,plugin:datadog
In artillery yml file:
plugins:
datadog:
prefix: "artillery.[my-prefix]."
tags:
...
However, it looks like Artillery does not wait for plugin to complete the metrics sending and exits process when test scenario is complete. I see in logs that plugin initiates flushing of metrics, but they do not reach DD:
metrics Flushing 31 metrics to DataDog +12s
metrics Calling add_metrics with ...
In short scenarios I was not able to get any metrics in DD. In longer scenarios last couple of metric flushes always do not appear in DD.
Is there any way to tell Artillery to wait for plugin flushing before exiting test process? I didn't found anything about it in documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这是a 已知问题插件datadog ,似乎被放弃了。我快速看了一下,冲洗统计数据的电话不是同步的。
考虑使用“ nofollow noreferrer”> norellery-plugin-plugin-publish-metrics-metrics 而不是。
Unfortunately this is a known issue with
artillery-plugin-datadog
, which seems abandoned. I took a quick look and the call to flush the stats is not synchronous.Consider using artillery-plugin-publish-metrics instead.