Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"last metrics" are not reported to Datadog - Artillery exits #5

Open
anroots opened this issue Jan 26, 2018 · 1 comment
Open

"last metrics" are not reported to Datadog - Artillery exits #5

anroots opened this issue Jan 26, 2018 · 1 comment

Comments

@anroots
Copy link
Contributor

anroots commented Jan 26, 2018

The last metrics of an Artillery test (past ~15 secs?) are not reported to Datadog - Artillery main process exits before this is done. It is especially obvious with a short test, for example:

# test.yaml
config:
  target: https://sqroot.eu
  phases:
    - duration: 3
      arrivalRate: 2
      name: "First stage"
  plugins:
    datadog:
      # Custom hostname (leave blank if not desired)
      host: 'test-host'
      # Custom metric prefix (defaults to 'artillery.')
      prefix: 'artillery.'
      # Additional tags for all metrics
      tags:
        - 'mode:test'
scenarios:
  - flow:
      - get:
          url: /

Running it...

$ DEBUG=metrics,plugin:datadog DATADOG_API_KEY=secret ./node_modules/.bin/artillery run test.yaml

... results in no metrics in Datadog.

Increasing the test duration to 20 seconds results in metrics reported. Probably a bug in the way the done event is handled or data is flushed.

Both versions 0.1 and 0.2 are affected -- needs investigation.

@anroots
Copy link
Contributor Author

anroots commented Mar 7, 2018

Note to self: consider making flush interval configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant