Unable to connect with Loki. Please check the server logs for more details

308 Views Asked by At

It's my first time to use loki, when I configured the loki as datasource of Grafana,It signed:

Unable to connect with Loki. Please check the server logs for more details.

I just follow the official documentation to run Grafana and promail and loki containers, here is the situation of docker containers: enter image description here

and I have tried to add "http://localhost:3100", "http://localhost:3101", "http://localhost:3102" as the loki url.But all of these failed with the same problem.

3

There are 3 best solutions below

0
yungkei On

The correct url should be

host.docker.internal:3100
0
wajih tlili On

it is a version problem, the grafana version should be compatible with loki's version, try downgrading to 2.6.* and try again

1
Rodion Shlomo Solomonyk On

update version: loki: image: tag: 2.9.4