As I gathered around but still not find a solid solution so asking for the great help from the community.
My context would be following:
- The k6 load tests will be executed on Gitlab CI. This part is done. I could make the tests are up the running.
- Now I want to send the results to new relic. There is a guide here https://discuss.newrelic.com/t/relic-solution-integrating-k6-load-testing-with-new-relic/110960. It needs to run a docker command, only my local it works like a charm.
docker run \ -d --restart unless-stopped \ --name newrelic-statsd \ -h $(hostname) \ -e NR_ACCOUNT_ID=YOUR_ACCOUNT_ID \ -e NR_API_KEY=YOUR_INSERT_API_KEY \ -p 8125:8125/udp \ newrelic/nri-statsd:2.0.0
- However, the issue is with Gitlab CI, I could not manage to start that
localhost:8125on gitlab, hence the results could not be send to new relic.
I would appreciate if anyone experienced the same and found a solution for it.