Docker - K6+InfluxDB+Grafana

Hi friends,

I am able to run K6+InfluxDB+Grafana in Docker containers, but influxdb is only getting recognized in containers. I have mounted these with localhosts as well. But i can’t open localhost:8086 which says 404 not found.

I am getting this error inside the containers.
grafana_1 | t=2020-10-10T12:55:44+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=GET path=/api/datasources/proxy/1/query status=502 remote_addr=192.168.48.1 time_ms=24 size=0

The issue is when i run K6, the data is not getting written into DB and hence cant see them in the grafana.

Hi @pawansinha4u
Do you want to try running your tests with the setup as described here ?

2 Likes

@jeevananthank Good One… Thanks.

May be a stupid question - what is the use of k6 ports here “6565:6565” ??

@pawansinha4u

It’s the port used for the k6 REST API. Mapping the port is totally optional.

1 Like

Hi @jeevananthank - docker-compose is not working on scenarios implementation. I am using shared iterations scenario.

This works without docker-compose, but when i use docker-compose it doesn’t work…it just run for 1 iteration can you help if any specific setup needs to be done for docker-compose?

@pawansinha4u

Would you mind pasting an anonymized version of your docker-compose file here? It would make it a lot easier to help.

2 Likes