Grafana Loki
Installation
Create dirs for Loki:
Create a Docker-Compose file
vim docker-compose.yml
Note
The config files MUST be in the inner container directory!
Loki Configs
Promtail config
Create the containers
Data Sources
Go to Grafana
Add New Data Source… → Loki
http://loki:3100
Explore
Docker logs
Install a Docker Driver https://grafana.com/docs/loki/latest/clients/docker-driver/
Check config: https://grafana.com/docs/loki/latest/clients/docker-driver/configuration/
- Config:
vim /etc/docker/daemon.json - Restart Docker:
sudo systemctl restart docker