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

Concurrent users chart missing on reports #1447

Open
akhiljay opened this issue May 15, 2022 · 2 comments
Open

Concurrent users chart missing on reports #1447

akhiljay opened this issue May 15, 2022 · 2 comments

Comments

@akhiljay
Copy link

I am unable to see the chart that shows concurrent users connected to the service I am testing against.

Version info:

Artillery Core: 2.0.0-16
Artillery Pro:  3.0.0-9

Node.js: v18.0.0
OS:      darwin

Running this command:

artillery report result4.json

I expected to see this happen:

A concurrent users chart within the HTML generated report

Instead, this happened:

I see vusers created and completed chart

Files being used:

config:
    target: "wss://localhost:8888/ws"
    phases:
      - duration: 30
        arrivalRate: 10
        maxVusers: 500
        name: "Warming up"
      - duration: 30
        arrivalRate: 10
        maxVusers: 1000
        name: "Max load"
scenarios:
  - engine: "ws"
    flow:
      - send: "hello"
      - think: 1
      - send: "how are you?"
@binhphi109
Copy link

I'm also encountering this issue. There is no concurrent users report on "artillery": "^2.0.0-10".
Please double check?

@savvagen
Copy link

savvagen commented Sep 9, 2022

@hassy @akhiljay @kugoo109 I found a workaround for this problem ... When you want to visualise the number of concurrent users in your monitoring system you need to count it form such metrics as: vusers.created, vusers.completed, vusers.failed
So here is the formula:

vusers_active =  sum_cum(vusers.created) - ( sum_cum(vusers.completed) - sum_cum(vusers.failed) )

Where "sum_cum" - is the cumulative sum of all metric values during the test ... 

I implemented this in the Datadog dashboard and I got a picture like this
image

Here is the load plan:

      phases:
        - duration: 120
          arrivalRate: 5
          maxVusers: 5
        - duration: 120
          arrivalRate: 8
          maxVusers: 10
        - duration: 180
          arrivalRate: 12
          maxVusers: 15

In this simple example, I have a test with 3 steps (strating from 5 vusers) where the steps are increased by 5 users - 3 times... And surprise, I got the right number of active users :)

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

3 participants