- Add grafana helm repository
helm repo add grafana https://grafana.github.io/helm-charts
2. Update helm repository
helm repo update
3. Install Loki
helm install loki grafana/loki --namespace monitoring --values monitoring/loki-values.yaml
4. Install Grafana alloy (log collector)
helm install alloy grafana/alloy --namespace monitoring --values monitoring/alloy-values.yaml
5. Verify Loki and Alloy pods are running
kubectl get pods -n monitoring
6. Deploy application and add loki in garfana datasource to check the dashboard in Garfana.