Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect grafana with loki - helm #15236

Open
henres opened this issue Dec 3, 2024 · 3 comments
Open

Unable to connect grafana with loki - helm #15236

henres opened this issue Dec 3, 2024 · 3 comments

Comments

@henres
Copy link

henres commented Dec 3, 2024

Describe the bug
Hello everyone,

I am trying to install loki on a kubernetes cluster, I followed this set up : https://grafana.com/docs/loki/latest/setup/install/helm/install-microservices/#install-the-microservice-helm-chart.

Everything seem to work fine on loki side.
I have also installed in another namespace prometheus-stack chart.
I am trying to connect grafana and loki together, but I just got the : Unable to connect with Loki. Please check the server logs for more details. And when I go see the logs of the grafana pods or loki pods. There is no logs.

I have all this services in loki:

loki-backend                              ClusterIP   10.3.39.241    <none>        3100/TCP,9095/TCP    16h
loki-backend-headless                     ClusterIP   None           <none>        3100/TCP,9095/TCP    16h
loki-canary                               ClusterIP   10.3.134.68    <none>        3500/TCP             16h
loki-fa9eeafd-chunks-cache                ClusterIP   None           <none>        11211/TCP,9150/TCP   16h
loki-fa9eeafd-gateway                     ClusterIP   10.3.233.166   <none>        80/TCP               16h
loki-fa9eeafd-query-scheduler-discovery   ClusterIP   None           <none>        3100/TCP,9095/TCP    16h
loki-fa9eeafd-results-cache               ClusterIP   None           <none>        11211/TCP,9150/TCP   16h
loki-memberlist                           ClusterIP   None           <none>        7946/TCP             16h
loki-read                                 ClusterIP   10.3.159.242   <none>        3100/TCP,9095/TCP    16h
loki-read-headless                        ClusterIP   None           <none>        3100/TCP,9095/TCP    16h
loki-write                                ClusterIP   10.3.161.246   <none>        3100/TCP,9095/TCP    16h
loki-write-headless                       ClusterIP   None           <none>        3100/TCP,9095/TCP    16h

I tried with all 3100 port or the gateway but nothing seem to work ...
If anyone can help me ? Thanks in advance !
Have a nice day (edited)

To Reproduce
Steps to reproduce the behavior:
I followed the https://grafana.com/docs/loki/latest/setup/install/helm/install-microservices/#install-the-microservice-helm-chart
I add the s3 storage (OVH) and change everything to 1 replica.

Be able to connect to grafana via either service and get log error that is verbose if connection error.

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: helm
@henres
Copy link
Author

henres commented Dec 4, 2024

I tried to add datasources directly in the prometheus-stack for grafana :

grafana:
  additionalDataSources:
  - access: proxy
    isDefault: true
    name: loki
    type: loki
    url: http://loki-fa9eeafd-gateway.loki.svc.cluster.local

The grafana pods doesn't start anymore with no logs at all. Neither in loki or grafana.

@JStickler
Copy link
Contributor

Questions have a better chance of being answered if you ask them on the community forums.

@henres
Copy link
Author

henres commented Dec 10, 2024

Thanks, I will try. I also sent a message to discord community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants