Search code examples
kuberneteskubernetes-helmgrafana-loki

how to connect Loki helm chart to my app in kubernetes


I am new to Loki but all i want to do is to use it as simply as possible with helm.

I want to get the logs of my app witch is in kubernetes, but it seems that there is no instructions on how to do that. All I find is how to install Loki and to add it to Grafana as a datasource but I don't think that's what Loki is made for.

I simply want to track my app's logs in kubernetes so I am using Loki helm chart and all I can find about a custom config is this line:

Deploy with custom config

helm upgrade --install loki grafana/loki-stack --set "key1=val1,key2=val2,..."

Solution

  • After installing Loki you can set it as a data source for Grafana. For more details you can follow this example :Logging in Kubernetes with Loki and the PLG Stack

    I hope that this can help you to resolve your issue .