Getting Started with Grafana Loki and Dashboard Integration
Beginner · 35 minutes · 100 points
In this foundational lab, you will install and configure Grafana Loki, a log aggregation system, and set up a Grafana dashboard to visualize logs. You will learn how to install Loki, configure it, push sample log entries, and query them through Grafana's data source integration. By the end of this lab, you will understand the core components of the Loki stack and how they connect to provide powerful log monitoring capabilities.
What you’ll learn
- Download and install Grafana Loki binary on an Ubuntu system
- Create and validate a working Loki configuration file
- Push log entries to Loki using its HTTP push API and verify ingestion
- Understand how Grafana connects to Loki as a data source using LogQL queries
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- At least 2GB of free disk space
- Internet connectivity for downloading Loki binary
Topics: loki, grafana, logging, monitoring, logql, observability, log-aggregation, promtail, dashboard
Create a free account to start this lab.