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

Part 2.5 monitoring: loki-stack is deprecated and not working per instructions #152

Open
jhirvioja opened this issue Aug 22, 2024 · 3 comments

Comments

@jhirvioja
Copy link
Contributor

@mluukkai

When trying to add loki-stack to Grafana in part 2, it fails with errors. I think it is because loki-stack is deprecated and provides an older version in the charts, which does not work with latest Grafana used.

Should be fixed it to use loki instead, which is recommended: https://community.grafana.com/t/difference-between-helm-charts-loki-and-loki-stack/87380/2. Then again, it might be possible to bump the version manually and keep the instructions as such, did not try that.

I managed to get Grafana to connect to just plain loki, but I don't think it provides Promtail out-of-the-box, meaning it does not trail the application logs in Grafana in a trivial manner. The part needs more configuration (and instructions to the material).

The Grafana UI has also changed a bit, so f.e.
Open Grafana, go to settings, and choose Connections, Data Sources, and then Add data source.

should be

Open Grafana, open the hamburger menu from top left, under Connections choose Data Sources, and then Add new data source.

@jhirvioja
Copy link
Contributor Author

jhirvioja commented Aug 22, 2024

I installed Promtail with these instructions and the logs now show in Grafana.

Loki I installed with these instructions, with the distinction that the values.yaml required auth_enabled: false, and after that Save and test worked with the connection url http://loki-gateway.loki-stack.svc.cluster.local (this url is outputted by loki during the helm install process)

@KareimGazer
Copy link
Contributor

thanks for theses tips @jhirvioja

@Lastferbbs
Copy link

Lastferbbs commented Dec 8, 2024

should also works -
helm upgrade --install loki --namespace=prometheus grafana/loki-stack --set loki.image.tag=2.9.3

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

No branches or pull requests

3 participants