artillery icon indicating copy to clipboard operation
artillery copied to clipboard

Concurrent users chart missing on reports

Open akhiljay opened this issue 2 years ago • 2 comments

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?"

akhiljay avatar May 15 '22 21:05 akhiljay

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

binhphi109 avatar Jun 09 '22 01:06 binhphi109

@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 :)

savvagen avatar Sep 09 '22 13:09 savvagen