炮兵测试脚本退出,而无需等待炮兵 - 包木datog完成冲洗

发布于 2025-02-12 07:34:29 字数 546 浏览 0 评论 0原文

我有一个炮兵测试脚本,该脚本使用炮兵 - 帕金 - 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尸血腥色 2025-02-19 07:34:29

不幸的是,这是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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文