Logging at Scale in Kubernetes using Grafana Loki

Pavan Kumar
Nerd For Tech
Published in
7 min readSep 6, 2021

--

Log aggregation in Kubernetes using Grafana Loki

Well, all of us have been using Grafana for quite a while. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored. In fact, I personally liked the colorful dashboards that almost support all the time-series database (TSDB) data. Grafana also has rich support for various input sources like Prometheus, InfluxDB, AWS Cloud Watch, Azure Monitor, etc. But what about log aggregation? How do you aggregate your logs from your applications? Using another solution like ELK, EFK, etc. What if I tell you that the log aggregation can also be now done by Grafana itself? Yes, you heard it right. Grafana Labs has recently launched its new solution for log aggregation known as Grafana Loki. Grafana Loki is a set of components that can be composed into a fully-featured logging stack. Loki is cheaper to operate and is also efficiently scalable.

Image Credits: Grafana labs

What is the entire story all about? (TLDR)

  1. Understand the architecture and concepts of Grafana Loki.
  2. Setting up Loki on a Kubernetes cluster using the official helm chart.

Prerequisites

  1. A Kubernetes Cluster ( Can be either On-Prem, AKS, EKS, GKE, Kind ).

--

--

Pavan Kumar
Nerd For Tech

Senior Cloud DevOps Engineer || CKA | CKS | CSA | CRO | AWS | ISTIO | AZURE | GCP | DEVOPS Linkedin: https://www.linkedin.com/in/pavanakumar18/