Fix K6 KPI Legacy Batch Reporting issues II 25/141325/3
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 17 Jun 2025 08:09:22 +0000 (09:09 +0100)
committerToine Siebelink <toine.siebelink@est.tech>
Mon, 23 Jun 2025 07:25:20 +0000 (07:25 +0000)
commitcce6d958928da57165c210c96c3222ca2c970208
tree48d2c4c13830cc8b04f3c522a2ad81e91577d26e
parent938ba72570cf51d0f1fd21261d32820cbf3b58c0
Fix K6 KPI Legacy Batch Reporting issues II

- Changed legacy batch consume to ran once per second (constant-arrival-rate) rather then only 1 big loop
- Updated k6 install to version 1.0.0 ! (old version cause most of the issue this patch took so long)
- Removed import of crypto as it is now part of k6 standard install
- No more checks on total messages, just recording message consumed every second
- Fixed 'timeout' configuration parameter, it is 'maxWait' !
- Fixed some incorrect casing on variables
- Added (now debug level) logging for troubleshooting produce/consume legacy batch events
- Improved name of config parameter: containerUpTime to containerCoolDownTime
- Reduce cool down time for kpi to 10s (its really only needed for endurance)
- Improved several variable names (consistency!)
- Reduced scope of data be passed on (to what is used) e.g. "data.metrics" instead of "data"
- Some formatting changes
TODO remove small test config

Issue-ID: CPS-2716
Change-Id: If95645f3eb90ff035a1add07b1e2117b7f944317
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
14 files changed:
.gitignore
docker-compose/config/grafana/jvm-micrometer-dashboard.json
docker-compose/cps-base.yml
k6-tests/install-deps.sh
k6-tests/ncmp/common/passthrough-crud.js
k6-tests/ncmp/common/produce-avc-event.js
k6-tests/ncmp/common/utils.js
k6-tests/ncmp/common/write-data-job.js
k6-tests/ncmp/config/endurance.json
k6-tests/ncmp/config/kpi.json
k6-tests/ncmp/config/test-kpi-metadata.json
k6-tests/ncmp/ncmp-test-runner.js
k6-tests/ncmp/register-cmhandles-only.js
k6-tests/teardown.sh