Part 2.5 monitoring: loki-stack is deprecated and not working per instructions
jhirvioja opened this issue · 3 comments
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.
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)
thanks for theses tips @jhirvioja
should also works -
helm upgrade --install loki --namespace=prometheus grafana/loki-stack --set loki.image.tag=2.9.3