K6 Configuration on docker compose

Hi Team,

We running our test through docker-compose. All the services are up and running, but we are missing some precious data due to integration missing between the services. It takes time to configure everything manually. Guide me, on how to overcome these challenges automatically ( or pre-configured) through docker-compose.

Challenge 1. Integration between Influxdb and Grafana
Data source URLs are changing due to IP addresses and other things.

Is there are any option to create the grafana influxdb data source on the fly through the docker-compose.yml

Challenge 2. Integration missing between K6 and influxdb.
The IP address of the influxdb changes every time, therefore defining the k6_out is challenging.

      - K6_OUT=influxdb=

This article helps me to solve most of my challenges.

1 Like