I am new to Loki and Grafana and right now I am trying to install Loki on a windows 2022 server. I am testing Grafana Loki in a Docker Compose setup, but not seeing any data ingested into Grafana dashboard. But I can see the logs in my Docker Dekstop.
Logs shown by Docker Desktop
Grafana Dashboard while Database is connected
Can anyone tell me where the problem might be?
I followed the installation from the Loki Documentation.
This is the Docker Compose Config:
version: "3"
networks:
loki:
services:
loki:
image: grafana/loki:2.9.2
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- loki
promtail:
image: grafana/promtail:2.9.2
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
networks:
- loki
grafana:
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
entrypoint:
- sh
- -euc
- |
mkdir -p /etc/grafana/provisioning/datasources
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: true
version: 1
editable: false
EOF
/run.sh
image: grafana/grafana:latest
ports:
- "3000:3000"
networks:
- loki
Grafana is successfully connecting to the data source “Loki” but usually it also adds the message that labels are found but in my case I only get a successful connection message, but no error message that can help me find out where the problem is.
here is the database URL setting:
database URL settings
I tried reinstalling the Docker Compose and the database but nothing changed. My only guess would be that there is an active filter in Grafana that is preventing me from seeing the logs or either the Host configurations are wrong
Pouyan Jadidi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.