Simple docker compose set of Grafana, Loki, and Promtail. Also, a log generator pushes random log data to Loki via a Promtail sidecar for demonstrating pipelines.
- Docker
- (optional) RestClient
End with an example of getting some data out of the system or using it for a little demo.
docker compose up
- Create the Loki datasource (one of the following):
- Run
.\create-datasource.ps1
- Use the snippet in the create-datasource.http along with the recommended RestClient to create the datasource.
- (optional) If you did not use the automation above, you can manually add a datasource in Grafana of type "Loki" and point it to http://loki:3100/.
- Run
- Navigate to Grafana at http://localhost:3000.
Run ./bin/run-promtail-local.bat