Skip to content

Metrics latency and throughput are not collected in tests with one invocation #856

@Amacuse

Description

@Amacuse

After https://github.com/griddynamics/jagger/issues/844 has been fixed in
commit 1766c89 there are missing metrics Latency and Throughput on UI and in a database. In jagger version=1.2.5, when we have test with following configuration:

<test id="PublishingCatalogDataLoad" testDescription="publishingDataLoadTest">
                    <load xsi:type="load-invocation" exactcount="1" threads="1" delay="0"/>
                    <termination xsi:type="termination-iterations" iterations="1" maxDuration="30m"/></test>

we get metrics representation on UI like this:

screenshot at jan 24 10-23-55

screenshot at jan 24 10-25-15

Now it looks like this:

screenshot at jan 24 11-26-25

screenshot at jan 24 11-26-45

Steps to reproduse:

  1. Take the Jagger test example from a class com.macys.platform.ExampleSimpleJLoadScenarioProvider

  2. Change these two lines of code:
    JLoadProfile jLoadProfileRps = JLoadProfileRps.builder(RequestsPerSecond.of(10)).withMaxLoadThreads(10).withWarmUpTimeInMilliseconds(10000).build();
    JTerminationCriteria jTerminationCriteria = JTerminationCriteriaIterations.of(IterationsNumber.of(500), MaxDurationInSeconds.of(30));

to

JLoadProfile jLoadProfileRps = JLoadProfileInvocation.builder(InvocationCount.of(1), ThreadCount.of(1)).build();
JTerminationCriteria jTerminationCriteria = JTerminationCriteriaIterations.of(IterationsNumber.of(1), MaxDurationInSeconds.of(30));

  1. Launch 'ls_example' test in distributed or local mode

  2. Go to jagger UI http://localhost:8087/ and see Metrics ---> ptg_example[lt_example] ---> Main parameters

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