Closed Angel-Asensio closed 7 months ago
@Angel-Asensio did you find a work around? Or only using an IP address?
The solution is to use host.docker.internal instead of the 127.0.0.1 or localhost in your URL string.
The error:
Details TypeError: t.toLowerCase is not a function
gives no hint about the problem.
Fixed in c7acd17f27328e63a010594266b1025bc035ec4b
Grafana docker container and Trino running as service on the docker host
If I try to configure the URL for Trino as Data source with localhost (assuming I have trino running locally), I get the following error trace:
This is a completely misleading error message, because TypeError: t.toLowerCase is not a function gives no information about the real problem. The same happens with 127.0.0.1.
Steps to reproduce:
default: 10.1.4
docker run -d -p 3000:3000 --name=grafana \ -e "GF_INSTALL_PLUGINS=trino-datasource" \ grafana/grafana-oss
Add a new Trino Data source in grafana (type: Trino) with URL: http://localhost:8080/
Solution:
I need to get the IP address of the docker host, so that I can refer it inside the docker container. For Mac/Windows, use the special DNS name: host.docker.internal instead of the 127.0.0.1 or localhost in your URL string.