Loading video player...
In this episode, I integrate Grafana Loki into a Kubernetes-based system to centralize logs from APIs and the database. Instead of SSH-ing into pods and grepping logs manually, we bring everything into Grafana and query logs alongside metrics. Topics covered: - Centralizing application and database logs with Grafana Loki - Push-based log collection and why Loki works differently - Querying logs across multiple services - Detecting recurring patterns in large log volumes - Cost-efficient log aggregation with minimal indexing Architecture overview: Application → Promtail → Loki → Grafana Timeline: 0:00 – The Kubernetes logging problem 0:45 – Why Loki 2:15 – Metrics vs logs 4:15 – Loki architecture 5:30 – Exploring API logs in Grafana 8:00 – Filtering and deduplication 9:30 – Pattern detection 10:45 – PostgreSQL logs in the same dashboard 11:45 – Loki data source configuration 13:00 – Key takeaways Resources: GitHub: https://github.com/IggyCloud/eShop Kubernetes manifests: https://github.com/IggyCloud/resources Discord: https://discord.gg/KTtMfEdr #Grafana #Loki #Kubernetes #Observability #Logging