Unable to connect InfluxDB 2.6 to the Grafana

Hello All,
I am trying to create a data-source in the Grafana but getting the connection refused errorerror: Object { refId: "test", message: "Post \"http://influxdb:8086/api/v2/query?org=org\": proxyconnect tcp: dial tcp proxy.example.com:3128: connect: connection refused" } I am currently running the Grafana as well as InfluxDB in a docker-compose file. I have followed the below guide Connecto to Grafana. Can someone help me here??

Thank you!! I was able to resolve the issue it was mainly related to the proxy settings in container. hence closing the issue