Loki: Failed to call resource

I installed Grafana on a Raspberry Pi and have problems to get Loki running.
My Grafana is on v9.4.3, and I installed it by following this tutorial: Install Grafana on Raspberry Pi | Grafana Labs
But if I create Data source Loki it does show me a red label Unable to fetch labels from Loki (Failed to call resource), please check the server logs for more details
My Grafana Logs show this:
$sudo tail -n 5 /var/log/grafana/grafana.log

logger=context userId=2 orgId=1 uname=novski t=2023-03-15T20:26:22.588805821+01:00 level=error msg="Failed to call resource" error="Get \"http://localhost:3100/loki/api/v1/labels?start=1678907782465000000&end=1678908382465000000\": dial tcp [::1]:3100: connect: connection refused" traceID=
logger=context userId=2 orgId=1 uname=novski t=2023-03-15T20:26:22.589120868+01:00 level=error msg="Request Completed" method=GET path=/api/datasources/3/resources/labels status=500 remote_addr=192.168.1.30 time_ms=34 duration=34.794286ms size=51 referer=http://grafana:3000/datasources/edit/JGrDGG-4k handler=/api/datasources/:id/resources/*
logger=context userId=2 orgId=1 uname=novski t=2023-03-15T20:33:41.111124471+01:00 level=error msg="Failed to call resource" error="Get \"http://localhost:3100/loki/api/v1/labels?start=1678908220906000000&end=1678908820906000000\": dial tcp [::1]:3100: connect: connection refused" traceID=
logger=context userId=2 orgId=1 uname=novski t=2023-03-15T20:33:41.111441982+01:00 level=error msg="Request Completed" method=GET path=/api/datasources/3/resources/labels status=500 remote_addr=192.168.1.30 time_ms=48 duration=48.353019ms size=51 referer=http://grafana:3000/datasources/edit/JGrDGG-4k handler=/api/datasources/:id/resources/*
logger=cleanup t=2023-03-15T20:33:42.203491576+01:00 level=info msg="Completed cleanup jobs" duration=13.147104ms

How can I verify if Loki is installed correctly?
Am I overlooking something I had to do previously?

Did you only install Grafana or did you also install Loki? Grafana is “just” a dashboard UI. The datasources you have to install separately.

Do you mean an installation of Loki by CLI or on the Dashboard of Grafana?
I think I have done something like an Installation of Loki at least in Grafana over the Webconfig in the Menu Config/Datasource.

Sounds like you need the actual Loki “server” part. You can run this a s a single container with Deployment modes | Grafana Loki documentation

Looking at how you installed Grafana, you would probably install it like this Local | Grafana Loki documentation

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.