Skip to main content
In this lesson you’ll learn Grafana Loki end-to-end: what it is, how its components fit together, and how to deploy a fully functional logging pipeline—first locally, then on Kubernetes using Helm. This is a hands-on course: you’ll run real CLI and Kubernetes commands, inspect real outputs, and complete labs that mirror production workflows. I’m Sanjeev Thiyagarajan and I’ll guide you step-by-step through deploying Loki, Grafana Alloy, and the collectors that send logs to Loki. What you’ll learn
  • What Grafana Loki is and when to use it for centralized logging
  • How to collect logs from local processes and from Kubernetes pods
  • How to deploy Alloy (the log collector) with Helm and observe rollout behavior
  • How to query and process logs in Grafana for efficient troubleshooting
Course outline Required reading and references Quick example: a minimalist local Loki config
Example log lines you will collect and query
We’ll start locally to get a feel for Loki’s data model and queries, then move into Kubernetes to deploy the full stack with Helm and collect logs from every component.
A presentation slide titled "Grafana Loki" with bullet points about running and querying logs. On the right, a presenter wearing a hijab and a KodeKloud hoodie speaks to the camera.
You won’t just watch—you’ll build the pipeline step by step and run the same commands you’d use on the job.
This course emphasizes practical, production-like workflows. Expect to run the same CLI and Kubernetes commands you would use in real environments.
Example commands you will run when installing Grafana Alloy and Loki on Kubernetes
A short example of discovery/forwarding configuration (HCL-like for some collectors)
Installing Alloy with Helm and watching the daemonset become ready (commands + example output)
Watching the Alloy daemonset rollout — example kubectl progression
Community learning and support What’s special about this course at KodeKloud is the emphasis on community: ask questions, share progress, and collaborate with fellow learners to speed up your mastery of Grafana Loki and Kubernetes logging.
A screenshot of the KodeKloud community forum showing a left-hand category menu and a list of topics (DevOps, Cloud, Kubernetes) on the main panel. A small circular video/chat overlay with a person appears in the bottom-right.
Next steps
  • Start the local lab and apply the example loki-local-config.yaml.
  • When ready, follow the Helm install steps above to deploy Alloy and Loki on your cluster.
  • Use Grafana to query the example log lines and practice labeling and relabeling for efficient search.
Happy learning — let’s get Loki collecting logs!

Watch Video