Use Grafana Loki to collect and visualize logs.
- Clone this repo:
git clone https://github.com/joaoreider/grafana-loki-demo.git
cd grafana-loki-demo
- Start the environment:
docker-compose up -d
- Test the endpoints:
- http://localhost:8080/generate-log - Generate an info log.
- http://localhost:8080/error - Generate an error log
-
Access Grafana http://localhost:3000.
-
Login with:
- Usuário: admin
- Senha: admin
- Add Loki as Data source