Skip to content

Sparse stats graphed incorrectly? #28

@cwilso03

Description

@cwilso03

Thanks for a truly great plugin for k6! In using it this last week, I believe there may be an error in how some of the stats are being plotted. If you look at the attached screen shot, you can see there are 10 "humps" of activity in this increasing load test run. But the graphs don't show the "humps" on the same time scale. For example, in the "Generated Load" chart, the virtual user count is correct over the life of the test, ending at ~9:12 PM, but the "request rate" appears to stop at ~8:44 PM. Similarly, the three "Load Time" charts seem to show the activity "humps" compressed in the time scale.

I'm not certain of the cause, but I believe, for the Load Time stats at least (as they are my own custom metrics being gathered), it may be because the stats are not recorded on a set interval; rather, the measured time is only recorded when all of a series of queries against the server all complete successfully. Since, as the load increases the frequency of errors also increases, the later "humps" have fewer data points (as fewer of the request batches complete successfully).

Does the chart assume all data points for a given metric are occurring at the same time interval?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions